oci_cluster_placement_groups_cluster_placement_group

This resource provides the Cluster Placement Group resource in Oracle Cloud Infrastructure Cluster Placement Groups service.

Creates a new cluster placement group in the specified compartment.

Example Usage

resource "oci_cluster_placement_groups_cluster_placement_group" "test_cluster_placement_group" {
	#Required
	availability_domain = var.cluster_placement_group_availability_domain
	cluster_placement_group_type = var.cluster_placement_group_cluster_placement_group_type
	compartment_id = var.compartment_id
	description = var.cluster_placement_group_description
	name = var.cluster_placement_group_name

	#Optional
	capabilities {
		#Required
		items {
			#Required
			name = var.cluster_placement_group_capabilities_items_name
			service = var.cluster_placement_group_capabilities_items_service
		}
	}
	defined_tags = {"foo-namespace.bar-key"= "value"}
	freeform_tags = {"bar-key"= "value"}
	opc_dry_run = var.cluster_placement_group_opc_dry_run
	placement_instruction {
		#Required
		type = var.cluster_placement_group_placement_instruction_type
		value = var.cluster_placement_group_placement_instruction_value
	}
}

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

Import

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

$ terraform import oci_cluster_placement_groups_cluster_placement_group.test_cluster_placement_group "id"