Workspaces
This section is relevant to Terraform CLI workspaces and is different from the Terraform Cloud workspaces covered in the previous chapter.
As you are aware, Terraform configuration files can be configured to use a particular backend to persist the state file data. This has more advantages over the default local
backend in terms of backup and recovery, shared access within teams, security, and so on.
When you work with the default settings, the configuration stores the state file that belongs to the default
workspace. If there is a need to manage and work with multiple workspaces for the same configuration, there is a list of compatible backends that support that.
Have a look at a scenario and proceed with a sample exercise to know more:
The accounting team of the ABC company is planning to go ahead and use Terraform for their infrastructure provisioning. They will be deploying resources with the same AWS account to support multiple lower environments. AWS S3...