Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ksatirli/terraform-tfe-variable-set

Terraform Module: Terraform Cloud Variable Set
https://github.com/ksatirli/terraform-tfe-variable-set

hashicorp-terraform terraform-cloud

Last synced: 13 days ago
JSON representation

Terraform Module: Terraform Cloud Variable Set

Awesome Lists containing this project

README

        

# Terraform Cloud: Variable Set

This Terraform Module manages the lifecycle of [Terraform Cloud Variable Sets](https://www.terraform.io/cloud-docs/api-docs/variable-sets).

## Table of Contents

* [Terraform Cloud: Variable Set](#terraform-cloud--variable-set)
* [Table of Contents](#table-of-contents)
* [Requirements](#requirements)
* [Usage](#usage)
* [Author Information](#author-information)
* [License](#license)

## Requirements

* Terraform Cloud [Account](https://app.terraform.io/session)
* Terraform `1.3.x` or newer.

## Usage

For examples, see the [./examples](https://github.com/ksatirli/terraform-tfe-variable-set/tree/main/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](https://github.com/ksatirli/terraform-tfe-variable-set/graphs/contributors).

## 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](http://www.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.