oci_dns_steering_policy_attachment

This resource provides the Steering Policy Attachment resource in Oracle Cloud Infrastructure DNS service.

Creates a new attachment between a steering policy and a domain, giving the policy permission to answer queries for the specified domain. A steering policy must be attached to a domain for the policy to answer DNS queries for that domain.

For the purposes of access control, the attachment is automatically placed into the same compartment as the domain’s zone.

Example Usage

resource "oci_dns_steering_policy_attachment" "test_steering_policy_attachment" {
	#Required
	domain_name = var.steering_policy_attachment_domain_name
	steering_policy_id = oci_dns_steering_policy.test_steering_policy.id
	zone_id = oci_dns_zone.test_zone.id

	#Optional
	display_name = var.steering_policy_attachment_display_name
}

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 Steering Policy Attachment * update - (Defaults to 20 minutes), when updating the Steering Policy Attachment * delete - (Defaults to 20 minutes), when destroying the Steering Policy Attachment

Import

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

$ terraform import oci_dns_steering_policy_attachment.test_steering_policy_attachment "id"