Terraform: AWS MSK

Treat your cluster as code; treat your cluster diff as a PR.

0/3 done

Cluster as code

IaC for Kafka

Cloud-managed Kafka — AWS MSK, Confluent Cloud, Aiven, Strimzi on K8s — is the default for new platforms. Whichever you pick, declare it in code. Drift is where incidents start.

The HCL below provisions an MSK cluster in 3 AZs, KRaft-mode (Kafka 3.7+), with TLS-only client access, broker-AZ-stickiness, and CloudWatch + S3 logging.

Terraform: 3-AZ MSK cluster

Provision a 3-node MSK cluster in eu-west-1. Use kafka.m7g.large brokers, 1TB EBS each, TLS-only client access, CloudWatch logs on.

Reading in progress · 0 of 3 activities done