oci_core_cross_connect

This resource provides the Cross Connect resource in Oracle Cloud Infrastructure Core service.

Creates a new cross-connect. Oracle recommends you create each cross-connect in a CrossConnectGroup so you can use link aggregation with the connection.

After creating the CrossConnect object, you need to go the FastConnect location and request to have the physical cable installed. For more information, see FastConnect Overview.

For the purposes of access control, you must provide the OCID of the compartment where you want the cross-connect to reside. If you’re not sure which compartment to use, put the cross-connect in the same compartment with your VCN. For more information about compartments and access control, see Overview of the IAM Service. For information about OCIDs, see Resource Identifiers.

You may optionally specify a display name for the cross-connect. It does not have to be unique, and you can change it. Avoid entering confidential information.

Example Usage

resource "oci_core_cross_connect" "test_cross_connect" {
	#Required
	compartment_id = var.compartment_id
	location_name = var.cross_connect_location_name
	port_speed_shape_name = var.cross_connect_port_speed_shape_name

	#Optional
	cross_connect_group_id = oci_core_cross_connect_group.test_cross_connect_group.id
	customer_reference_name = var.cross_connect_customer_reference_name
	defined_tags = {"Operations.CostCenter"= "42"}
	display_name = var.cross_connect_display_name
	far_cross_connect_or_cross_connect_group_id = oci_core_cross_connect_group.test_cross_connect_group.id
	freeform_tags = {"Department"= "Finance"}
	macsec_properties {
		#Required
		state = var.cross_connect_macsec_properties_state

		#Optional
		encryption_cipher = var.cross_connect_macsec_properties_encryption_cipher
		is_unprotected_traffic_allowed = var.cross_connect_macsec_properties_is_unprotected_traffic_allowed
		primary_key {
			#Required
			connectivity_association_key_secret_id = oci_vault_secret.test_secret.id
			connectivity_association_name_secret_id = oci_vault_secret.test_secret.id
		}
	}
	near_cross_connect_or_cross_connect_group_id = oci_core_cross_connect_group.test_cross_connect_group.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 Cross Connect * update - (Defaults to 20 minutes), when updating the Cross Connect * delete - (Defaults to 20 minutes), when destroying the Cross Connect

Import

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

$ terraform import oci_core_cross_connect.test_cross_connect "id"