Skip to content

Terraform Workspaces

A single directory can be associated with multiple workspaces. Workspaces can also contain Tags.

Terrateam workspaces correspond to Terraform workspaces and will automatically be created if they do not already exist.

dirs:
ec2/us-east-1:
tags: [ec2, us-east-1]
workspaces:
development:
tags: [development]
production:
tags: [production]

Run operations against the development workspace and disable the default workspace:

dirs:
ec2/us-east-1:
workspaces:
default:
when_modified:
file_patterns: []
ec2/us-east-1:
workspaces:
development:
when_modified:
file_patterns: ["ec2/us-east-1/*.tf"]
We use cookies and similar technologies to provide certain features, enhance the user experience and deliver content that is relevant to your interests. Depending on their purpose, analysis and marketing cookies may be used in addition to technically necessary cookies. By clicking on "Agree and continue", you declare your consent to the use of the aforementioned cookies. Here you can make detailed settings or revoke your consent (in part if necessary) with effect for the future. For further information, please refer to our Privacy Policy .