Provisioning customer accounts with Terraform (workspaces, Modules, ?) Best Practice?

Viewed 3904

I have the need to create and manage multiple customer environments in AWS and I'm wanting to leverage Terraform to deploy all of the necessary resources. Each customer environment is basically the same with the exception of the URL they use to access one of the servers.

I have put together a Terraform configuration that deploys all of the resources for a given customer. BUT... How do I take that same configuration and apply it to the next customer without copying the entire Terraform directory and duplicating that for every customer. (I could have 100's of these)

I've heard workspaces and modules or both. Anyone seen a best-practice article out there on this?

Thx

1 Answers
Related