tfe_workspace_variable_set

Adds and removes variable sets from a workspace

Example Usage

Basic usage:

resource "tfe_organization" "test" {
  name  = "my-org-name"
  email = "admin@company.com"
}

resource "tfe_workspace" "test" {
  name         = "my-workspace-name"
  organization = tfe_organization.test.name
}

resource "tfe_variable_set" "test" {
  name          = "Test Varset"
  description   = "Some description."
  organization  = tfe_organization.test.name
}

resource "tfe_workspace_variable_set" "test" {
  variable_set_id = tfe_variable_set.test.id
  workspace_id    = tfe_workspace.test.id
}

Argument Reference

The following arguments are supported:

Attributes Reference

Import

Workspace Variable Sets can be imported; use <ORGANIZATION>/<WORKSPACE NAME>/<VARIABLE SET NAME>. For example:

terraform import tfe_workspace_variable_set.test 'my-org-name/workspace/My Variable Set'