Decoupling the communication between terraform client and server with RabbitMQ, Terraform CDK and Go. Provision infrastructure at scale.
In this example, we will see how consumers create AWS EC2 instances using configs from producer's messages.
- Docker/Docker-compose
- cdktf-cli
- terraform
- Go >= 1.16
Start rabbitMQ, consumers:
docker compose up
Start terraform producer:
cd tf-client
go run main.go <ec2-instance-name>