Terraform is one of the most popular infrastructure as code (IaC) tools available. It isn’t only one of the most active open-source projects, but it’s also cutting edge to the point that whenever AWS releases a new service, Terraform has a resource ready even before AWS’s CloudFormation.

As Terraform is a declarative IaC tool, it needs to store and maintain a state.

In that scenario, you need to share the state — as you might end up stepping into each other’s shoes, and that exponentially increases complexity with the number of people added.

If you don’t specify the prefix, it stores the state file in the root level of the GCS bucket.

Related Articles