Skip to content

Latest commit

 

History

History
96 lines (72 loc) · 1.5 KB

tfe_workspace_ids.md

File metadata and controls

96 lines (72 loc) · 1.5 KB

tfe_workspace_ids

back

Index

Terraform

terraform {
  required_providers {
    tfe = ">= 0.24.0"
  }
}

top

Example Usage

module "tfe_workspace_ids" {
  source = "./modules/tfe/d/tfe_workspace_ids"

  # names - (required) is a type of list of string
  names = []
  # organization - (required) is a type of string
  organization = null
}

top

Variables

variable "names" {
  description = "(required)"
  type        = list(string)
}

variable "organization" {
  description = "(required)"
  type        = string
}

top

Datasource

data "tfe_workspace_ids" "this" {
  # names - (required) is a type of list of string
  names = var.names
  # organization - (required) is a type of string
  organization = var.organization
}

top

Outputs

output "external_ids" {
  description = "returns a map of string"
  value       = data.tfe_workspace_ids.this.external_ids
}

output "full_names" {
  description = "returns a map of string"
  value       = data.tfe_workspace_ids.this.full_names
}

output "id" {
  description = "returns a string"
  value       = data.tfe_workspace_ids.this.id
}

output "ids" {
  description = "returns a map of string"
  value       = data.tfe_workspace_ids.this.ids
}

output "this" {
  value = tfe_workspace_ids.this
}

top