Terraform module to manage the following Terraform Cloud/Enterprise resource:
- tfe_variable
Copy and paste into your Terraform configuration, insert the variables and run terraform init
:
module "tfe_organization" {
source = "dhoppeIT/organization/tfe"
version = "~> 0.3"
name = "dhoppeIT"
email = "[email protected]"
}
module "tfe_team" {
source = "dhoppeIT/team/tfe"
version = "~> 0.1"
name = "owners"
organization = module.tfe_organization.name
organization_membership_id = module.tfe_organization.id
}
module "tfe_workspace" {
source = "dhoppeIT/workspace/tfe"
version = "~> 0.2"
name = "terraform"
organization = module.tfe_organization.name
}
module "tfe_variable" {
source = "dhoppeIT/variable/tfe"
version = "~> 0.2"
key = "TFE_TOKEN"
value = module.tfe_team.token
category = "env"
description = "The token used to authenticate with Terraform Cloud/Enterprise"
sensitive = true
workspace_id = module.tfe_workspace.id
}
Name | Version |
---|---|
terraform | >= 1.0 |
tfe | ~> 0.26 |
Name | Version |
---|---|
tfe | 0.39.0 |
No modules.
Name | Type |
---|---|
tfe_variable.default | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
category | Whether this is a Terraform or environment variable | string |
n/a | yes |
description | Description of the variable | string |
null |
no |
description_suffix | Wheter to add a suffix to the description of the variable | string |
"" |
no |
hcl | Whether to evaluate the value of the variable as a string of HCL code | bool |
false |
no |
key | Name of the variable | string |
n/a | yes |
sensitive | Whether the value is sensitive | bool |
false |
no |
value | Value of the variable | string |
n/a | yes |
workspace_id | ID of the workspace that owns the variable | string |
n/a | yes |
Name | Description |
---|---|
id | The ID of the variable |
Created and maintained by Dennis Hoppe.
Apache 2 licensed. See LICENSE for full details.