-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
enhancementNew feature or requestNew feature or request
Description
See ADR 0004
Context
Not all users that migrate from Terraform communtiy edition managed configurations to Terraform Cloud managed worksapces want to use VCS driven workspaces. In situations where users want to migrate to CLI driven workspaces we should assist those users in configuring a cloud {} block automatically. This will help drive migration at scale.
CLI Driven workspaces require the following configuration at a minimum:
terraform {
cloud {
organization = "org-name"
workspaces {
name = "workspace-name"
}
}
}
Decision
- A command will be implemented to assit users in adding the
cloud {}configuration to terraform code. - The
cloud {}block will be automagically populated with the organization name taken from the.tfmconfig file settingdst_tfc_organd workspace name will be taken from the workspace name constructed from the metadata file created usingtfm core init-repos. - Any instances of
backend {}will be commented out in favor of thecloud{}block. - A VCS branch will be created, the change commmited, and pushed, but no PR will be created.
Consequences
Users will be able configure terraform configurations for use with TFC/TFE CLI Driven workspaces at scale.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request