oci_dns_resolver_endpoint

This resource provides the Resolver Endpoint resource in Oracle Cloud Infrastructure DNS service.

Creates a new resolver endpoint in the same compartment as the resolver.

Example Usage

resource "oci_dns_resolver_endpoint" "test_resolver_endpoint" {
	#Required
	is_forwarding = var.resolver_endpoint_is_forwarding
	is_listening = var.resolver_endpoint_is_listening
	name = var.resolver_endpoint_name
	resolver_id = oci_dns_resolver.test_resolver.id
	subnet_id = oci_core_subnet.test_subnet.id
	scope = "PRIVATE"

	#Optional
	endpoint_type = var.resolver_endpoint_endpoint_type
	forwarding_address = var.resolver_endpoint_forwarding_address
	listening_address = var.resolver_endpoint_listening_address
	nsg_ids = var.resolver_endpoint_nsg_ids
}

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

Import

For legacy ResolverEndpoints created without scope, these ResolverEndpoints can be imported using the id, e.g.

$ terraform import oci_dns_resolver_endpoint.test_resolver_endpoint "resolverId/{resolverId}/name/{resolverEndpointName}" 

For ResolverEndpoints created using scope, these ResolverEndpoints can be imported using the id, e.g.

$ terraform import oci_dns_resolver_endpoint.test_resolver_endpoint "resolverId/{resolverId}/name/{name}/scope/{scope}"