We have multiple services that we would like to deploy separately using Terraform Cloud. They do share resources such as a VPC.
Any recommendations on how we can best achieve them deploying separately? Some ideas that come to mind for me are:
- We could have them all in one Terraform repository, as different modules. However, I’m not sure if we’d be able to deploy the services separately because I believe they’d share one state file at the home directory level.
- We could break them into separate, standalone Terraform repositories. This solves the separate deployment use case, but how do we share resources like a VPC?
- Other recommendations?
Thanks in advance!