Skip to content

ksatirli/terraform-tfe-variable-set

Repository files navigation

Terraform Cloud: Variable Set

This Terraform Module manages the lifecycle of Terraform Cloud Variable Sets.

Table of Contents

Requirements

  • Terraform Cloud Account
  • Terraform 1.3.x or newer.

Usage

For examples, see the ./examples directory.

Inputs

Name Description Type Default Required
description Description of the variable set. string n/a yes
name Name of the variable set. string n/a yes
organization Name of the organization. string n/a yes
variables List of Objects containing Variable definitions.
list(object({
key = string
value = string
category = string
description = string
sensitive = optional(bool)
}))
n/a yes
global Toggle to make Variable Set available to all Workspaces in the Organization. Conflicts with var.workspace_ids. bool false no
workspace_ids List of Workspace IDs to add the Variable Set to. list(string) [] no

Outputs

Name Description
tfe_variable Exported Attributes for tfe_variable.
tfe_variable_set Exported Attributes for tfe_variable_set.
tfe_workspace_variable_set Exported Attributes for tfe_workspace_variable_set.

Author Information

This module is maintained by the contributors listed on GitHub.

License

Licensed under the Apache License, Version 2.0 (the "License").

You may obtain a copy of the License at apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" basis, without WARRANTIES or conditions of any kind, either express or implied.

See the License for the specific language governing permissions and limitations under the License.