oci_dns_tsig_key

This resource provides the Tsig Key resource in Oracle Cloud Infrastructure DNS service.

Creates a new TSIG key in the specified compartment. There is no opc-retry-token header since TSIG key names must be globally unique.

Example Usage

resource "oci_dns_tsig_key" "test_tsig_key" {
	#Required
	algorithm = var.tsig_key_algorithm
	compartment_id = var.compartment_id
	name = var.tsig_key_name
	secret = var.tsig_key_secret

	#Optional
	defined_tags = var.tsig_key_defined_tags
	freeform_tags = var.tsig_key_freeform_tags
}

Argument Reference

The following arguments are supported:

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Tsig Key * update - (Defaults to 20 minutes), when updating the Tsig Key * delete - (Defaults to 20 minutes), when destroying the Tsig Key

Import

TsigKeys can be imported using the id, e.g.

$ terraform import oci_dns_tsig_key.test_tsig_key "id"