Skip to content

feat: add support for workspaces

Marlon requested to merge (removed):support_workspaces into main
  • Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA

This MR adds an input which sets the TF_WORKSPACEenvironment variable https://opentofu.org/docs/cli/config/environment-variables/#tf_workspace. The default is set to "default" because if you don't specifically create a workspace, the workspace will just be called "default".

From https://opentofu.org/docs/language/state/workspaces/#using-workspaces:

OpenTofu starts with a single, default workspace named default that you cannot delete. If you have not created a new workspace, you are using the default workspace in your OpenTofu working directory.

Edited by 🤖 GitLab Bot 🤖

Merge request reports