workspacer
alexbasista/workspacer/tfe
Terraform module to create and configure Workspace(s) in Terraform Cloud/Enterprise.
Workspacer Terraform module to create, configure, and manage Workspaces in HCP Terraform or Terraform Enterprise. Usage ``hcl module "workspacer" { source = "alexbasista/workspacer/tfe" version = "x.x.x" organization = "my-hcptf-or-tfe-org-name" project_name = "Default Project" workspace_name = "my-new-ws" workspace_desc = "Description of my new Workspace." workspace_map_tags = { "app" = "acme", "env" = "test", "cloud" = "aws" } tfvars = { teststring = "iamstring" testlist = ["1", "2", "3"] testmap = { "a" = "1", "b" = "2", "c" = "3" } } } ` >📝 Note: Setting a TFE_TOKEN environment variable is the recommended approach for the TFE provider authentication. See the examples directory for more detailed example scenarios, and see the following section for optional configurations/features. Confi
| Name | Type | Description | Default |
|---|---|---|---|
| workspace_name | string | Name of Workspace to create. | required |
| organization | string | Name of Organization to create Workspace in. | required |
| workspace_desc | string | Description of Workspace. | "Created by 'workspacer' Terraform modul |
| speculative_enabled | bool | Boolean to allow Speculative Plans on Workspace. | true |
| ssh_key_id | string | SSH private key the Workspace will use for downloading Terraform modules from Gi | null |
| tfvars | any | Map of Terraform variables to add to Workspace. | {} |
| envvars_sensitive | map(string) | Map of sensitive Environment variables to add to Workspace. | {} |
| structured_run_output_enabled | bool | Boolean to enable the advanced Run UI. Set to `false` for the traditional consol | true |
| project_id | string | ID of existing Project to create Workspace in. Must be `null` if `project_name` | null |
| notifications | list( object( { | List of Notification objects to configure on Workspace. | [] |
| vcs_repo | object({ identifier | Object containing settings to connect Workspace to a VCS repository. | null |
| envvars | map(string) | Map of Environment variables to add to Workspace. | {} |
| policy_set_names | list(string) | List of names of existing Policy Sets to add this Workspace into. | [] |
| tfvars_sensitive | any | Map of sensitive Terraform variables to add to Workspace. | {} |
| allow_destroy_plan | bool | Boolean setting to allow destroy plans on Workspace. | true |
| tags_regex | string | A regular expression used to trigger a Run in Workspace for matching Git tags. T | null |
| project_name | string | Name of existing Project to create Workspace in. Must be `null` if `project_id` | null |
| tfvars_ignore_changes | any | Map of Terraform variables to add to Workspace whereby changes made outside of T | {} |
| variable_set_names | list(string) | List of names of existing Variable Sets to add this Workspace into. | [] |
| agent_pool_id | string | ID of existing Agent Pool to assign to Workspace. Only valid when `execution_mod | null |
| workspace_map_tags | map(string) | Map of key value tags to apply to Workspace. | {} |
| terraform_version | string | Version of Terraform to use for this Workspace. | null |
workspace_id — ID of Workspace.