/decouple-tf

Decoupling the communication between terraform client and server with RabbitMQ, Terraform CDK and Go.

Primary LanguageGo

TF-Deployment

Decoupling the communication between terraform client and server with RabbitMQ, Terraform CDK and Go. Provision infrastructure at scale.

ec2

In this example, we will see how consumers create AWS EC2 instances using configs from producer's messages.

ec2

Prerequisite

  • Docker/Docker-compose
  • cdktf-cli
  • terraform
  • Go >= 1.16

Quick Start

Start rabbitMQ, consumers:

docker compose up

Start terraform producer:

cd tf-client
go run main.go <ec2-instance-name>