Terraform module for managing Terraform Cloud Workspace resources.
- Terragrunt: view Terragrunt usage exmaple
- Terraform: view vanilla Terraform usage exmaple
| Name | Version |
|---|---|
| terraform | 1.3.2 |
| tfe | ~> 0.28.1 |
| Name | Version |
|---|---|
| tfe | ~> 0.28.1 |
No modules.
| Name | Type |
|---|---|
| tfe_variable.map | resource |
| tfe_workspace.map | resource |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| terraform_cloud_organization | The Terraform Cloud Organization name. | string |
n/a | yes |
| workspaces | Map of TF Cloud Workspace names to corresponding workspace config objects. The optional boolean properties all default to false. If "terraform_version" is provided, the specified semver will be used to constrain the versions of TF permitted to run within the workspace. Use the "remote_execution" property to configure workspace plan/apply operations to run remotely on TFC VMs instead of your local machine. With remote execution, you can also setup the VCS-driven workflow via the "vcs_config" property, which will cause apply operations to be initiated by new changes to "vcs_repo.branch" (default: "main") rather than via manual CLI/API calls. Note that enabling the VCS-driven workflow will DISABLE the ability to trigger runs via the CLI/API, which at this time can only be reversed by manually removing the repository from the workspace via the TF Cloud console. Instructions for obtaining a "vcs_oauth_token_id" for GitHub can be found at https://www.terraform.io/cloud-docs/vcs/github. |
map(object({ |
n/a | yes |
| Name | Description |
|---|---|
| Workspace_Variables | Map of TFC Workspace Variable resources (sensitive). |
| Workspaces | Map of TFC Workspace resource objects. |
All scripts and source code contained herein are for commercial use only by Nerdware, LLC.
See LICENSE for more information.