Terraform helps you manage your infrastructure by creating, updating and destroying your resources using structured code files; but what about handling several environments at once? With its 0.10 release, Terraform made it possible to deal with multiple environments.
Today, you will learn how to easily manage different environments/projects (alpha, staging, production…) without duplicating your Terraform files in different folders. This allows you to clearly separate your different environments and avoid confusion between them. After reading this article, you will know how to set up these workspaces and start working with them on your project. If you are interested in Terraform for your new project, you can start learning about terraform for Kubernetes for GCP, or for AWS EKS.