Description
The bill of materials (BOM) lists Kafka clusters declared as aws_msk_cluster, including clusters without tags.
Uses of the inventory
Match each deployed cluster to its Terraform resource, service, environment and responsible team.
Follow-up checks
Check live broker connectivity, authentication, encryption and logging. Confirm that monitoring covers the cluster.
Inventory examples
The Service and Environment tags identify the cluster. Use a supported Kafka version and the subnet and security group IDs from your VPC.
Cluster without tags
hcl
resource "aws_msk_cluster" "streaming" {
cluster_name = "streaming"
kafka_version = "3.6.0"
number_of_broker_nodes = 3
broker_node_group_info {
instance_type = "kafka.m5.large"
client_subnets = ["subnet-a", "subnet-b", "subnet-c"]
security_groups = ["sg-12345678"]
}
}
Cluster with tags
hcl
resource "aws_msk_cluster" "streaming" {
cluster_name = "streaming"
kafka_version = "3.6.0"
number_of_broker_nodes = 3
broker_node_group_info {
instance_type = "kafka.m5.large"
client_subnets = ["subnet-a", "subnet-b", "subnet-c"]
security_groups = ["sg-12345678"]
}
tags = {
Service = "streaming"
Environment = "production"
}
}