oci_managed_kafka_kafka_cluster

This resource provides the Kafka Cluster resource in Oracle Cloud Infrastructure Managed Kafka service.

Creates a KafkaCluster.

Example Usage

resource "oci_managed_kafka_kafka_cluster" "test_kafka_cluster" {
	#Required
	access_subnets {
		#Required
		subnets = var.kafka_cluster_access_subnets_subnets
	}
	broker_shape {
		#Required
		node_count = var.kafka_cluster_broker_shape_node_count
		ocpu_count = var.kafka_cluster_broker_shape_ocpu_count

		#Optional
		storage_size_in_gbs = var.kafka_cluster_broker_shape_storage_size_in_gbs
	}
	cluster_config_id = oci_apm_config_config.test_config.id
	cluster_config_version = var.kafka_cluster_cluster_config_version
	cluster_type = var.kafka_cluster_cluster_type
	compartment_id = var.compartment_id
	coordination_type = var.kafka_cluster_coordination_type
	kafka_version = var.kafka_cluster_kafka_version

	#Optional
	client_certificate_bundle = var.kafka_cluster_client_certificate_bundle
	defined_tags = {"Operations.CostCenter"= "42"}
	display_name = var.kafka_cluster_display_name
	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 Kafka Cluster * update - (Defaults to 20 minutes), when updating the Kafka Cluster * delete - (Defaults to 20 minutes), when destroying the Kafka Cluster

Import

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

$ terraform import oci_managed_kafka_kafka_cluster.test_kafka_cluster "id"