oci_dns_rrset

This resource provides the Rrset resource in Oracle Cloud Infrastructure DNS service.

Replaces records in the specified RRSet. When the zone name is provided as a path parameter and the zone has a scope of PRIVATE then the viewId query parameter is required.

Example Usage

resource "oci_dns_rrset" "test_rrset" {
	#Required
	domain = var.rrset_domain
	rtype = var.rrset_rtype
	zone_name_or_id = oci_dns_zone.test_zone.id

	#Optional
	compartment_id = var.compartment_id
	items {
		#Required
		domain = var.rrset_items_domain
		rdata = var.rrset_items_rdata
		rtype = var.rrset_items_rtype
		ttl = var.rrset_items_ttl
	}
	scope = var.rrset_scope
	view_id = oci_dns_view.test_view.id
}

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

Import

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

$ terraform import oci_dns_rrset.test_rrset "zoneNameOrId/{zoneNameOrId}/domain/{domain}/rtype/{rtype}" 

For Rrsets created using scope and view_id, these Rrsets can be imported using the id, e.g.

$ terraform import oci_dns_rrset.test_rrset "zoneNameOrId/{zoneNameOrId}/domain/{domain}/rtype/{rtype}/scope/{scope}/viewId/{viewId}"

skip adding {view_id} at the end if Rrset was created without view_id.