workspacer

alexbasista/workspacer/tfe

Terraform Module HCL TFE

Terraform module to create and configure Workspace(s) in Terraform Cloud/Enterprise.

Install
module "workspacer" {
source = "alexbasista/workspacer/tfe"
version = "0.15.0"
}
plain text: /constructs/tfmod-alexbasista-workspacer-tfe/install.txt
⭐ Source on GitHub 📦 Registry page
README

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

Inputs (38)
NameTypeDescriptionDefault
workspace_namestringName of Workspace to create. required
organizationstringName of Organization to create Workspace in. required
workspace_descstringDescription of Workspace."Created by 'workspacer' Terraform modul
speculative_enabledboolBoolean to allow Speculative Plans on Workspace.true
ssh_key_idstringSSH private key the Workspace will use for downloading Terraform modules from Ginull
tfvarsanyMap of Terraform variables to add to Workspace.{}
envvars_sensitivemap(string)Map of sensitive Environment variables to add to Workspace.{}
structured_run_output_enabledboolBoolean to enable the advanced Run UI. Set to `false` for the traditional consoltrue
project_idstringID of existing Project to create Workspace in. Must be `null` if `project_name` null
notificationslist( object( { List of Notification objects to configure on Workspace.[]
vcs_repoobject({ identifier Object containing settings to connect Workspace to a VCS repository.null
envvarsmap(string)Map of Environment variables to add to Workspace.{}
policy_set_nameslist(string)List of names of existing Policy Sets to add this Workspace into.[]
tfvars_sensitiveanyMap of sensitive Terraform variables to add to Workspace.{}
allow_destroy_planboolBoolean setting to allow destroy plans on Workspace.true
tags_regexstringA regular expression used to trigger a Run in Workspace for matching Git tags. Tnull
project_namestringName of existing Project to create Workspace in. Must be `null` if `project_id` null
tfvars_ignore_changesanyMap of Terraform variables to add to Workspace whereby changes made outside of T{}
variable_set_nameslist(string)List of names of existing Variable Sets to add this Workspace into.[]
agent_pool_idstringID of existing Agent Pool to assign to Workspace. Only valid when `execution_modnull
workspace_map_tagsmap(string)Map of key value tags to apply to Workspace.{}
terraform_versionstringVersion of Terraform to use for this Workspace.null
Outputs (1)
workspace_id — ID of Workspace.
Resources (8)
tfe_notification_configurationtfe_run_triggertfe_team_accesstfe_variabletfe_workspacetfe_workspace_policy_settfe_workspace_settingstfe_workspace_variable_set
Details
FrameworkTerraform Module
LanguageHCL
Version0.15.0
Cloud TFE
★ Stars14
Forks16
Total downloads35.7k
Inputs38
Outputs1
Resources8
Examples4
LicenseMPL-2.0
Namespacealexbasista
Updated