workspace-orchestrator
aws-ia/workspace-orchestrator/tfe
A module for deploying terraform code to Terraform Cloud Workspaces
Terraform Cloud Multi-Region Deployment with Workspaces If you want to deploy a terraform module to multiple locations (different VPCs, Regions, Accounts) this module can help. In most examples we use regions as the location separator but that doesnt have to be the case. The premise is simple, create your root module in a public VCS repo then using your Terraform Cloud (TFC) Organization, create workspaces for each deployment location. Usage To use you must have: 1. Terraform Cloud Organization with Admin Access 1. VCS repo with your HCL root module 1. Connect the repo to TFC (To be automated) Once the above is complete, simply execute this module with references for each location in a way that TFC can reference. Workspaces Workspaces are defined in a nested map as each deployment location
| Name | Type | Description | Default |
|---|---|---|---|
| organization | string | TFC Organization | required |
| workspaces | any | Nested map of workspaces to create and the associated arguments they can accept: | required |
| shared_workspace_tag_names | list(any) | Tag names to set for all workspaces. To set per-workspace, see `var.workspaces`. | [] |
| vcs_repo | object({ branch | Definition of the VCS repo to attach to every workspace. | null |
| shared_variable_set_ids | list(string) | A variable set ID to set to all workspaces. Use if you have a pre-existing varia | [] |
workspaces_attributes — Attributes associated with the created workspaces.