oci_containerengine_cluster_workload_mapping

This resource provides the Cluster Workload Mapping resource in Oracle Cloud Infrastructure Container Engine service.

Create the specified workloadMapping for a cluster.

Example Usage

resource "oci_containerengine_cluster_workload_mapping" "test_cluster_workload_mapping" {
	#Required
	cluster_id = oci_containerengine_cluster.test_cluster.id
	mapped_compartment_id = oci_identity_compartment.test_compartment.id
	namespace = var.cluster_workload_mapping_namespace

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	freeform_tags = {"Department"= "Finance"}
}

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

Import

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

$ terraform import oci_containerengine_cluster_workload_mapping.test_cluster_workload_mapping "clusters/{clusterId}/workloadMappings/{workloadMappingId}"