Terraform Cloud workspace structure

149 Views Asked by At

I am pretty new to Terraform and Terraform Cloud and I'm looking at the best way to structure my Terraform Cloud Workspaces.

Use Case: Relatively simple webapp, RDS, ECS/Fargate etc

I am currently evaluating with the following workspaces:

  1. ECR
  2. Database
  3. AppCore (ECS Cluster, ALB, etc etc)
  4. ECS Service/Tasks

Benefits: Small blast radius, logical chunks, can use Terraform when updating to new ECS task definitions.

I thought I found a doc on Terraforms site that suggested breaking workspaces similar to this was their recommended approach but I can't seem to find it again at the moment.

Is this good? bad? I've heard putting all your infrastructure in a single workspace can make things painful later.

Any ideas, thoughts or suggestions greatly appreciated!

0

There are 0 best solutions below