back
terraform {
required_providers {
tfe = ">= 0.24.0"
}
}
top
module "tfe_variable" {
source = "./modules/tfe/r/tfe_variable"
# category - (required) is a type of string
category = null
# description - (optional) is a type of string
description = null
# hcl - (optional) is a type of bool
hcl = null
# key - (required) is a type of string
key = null
# sensitive - (optional) is a type of bool
sensitive = null
# value - (optional) is a type of string
value = null
# workspace_id - (required) is a type of string
workspace_id = null
}
top
variable "category" {
description = "(required)"
type = string
}
variable "description" {
description = "(optional)"
type = string
default = null
}
variable "hcl" {
description = "(optional)"
type = bool
default = null
}
variable "key" {
description = "(required)"
type = string
}
variable "sensitive" {
description = "(optional)"
type = bool
default = null
}
variable "value" {
description = "(optional)"
type = string
default = null
}
variable "workspace_id" {
description = "(required)"
type = string
}
top
resource "tfe_variable" "this" {
# category - (required) is a type of string
category = var.category
# description - (optional) is a type of string
description = var.description
# hcl - (optional) is a type of bool
hcl = var.hcl
# key - (required) is a type of string
key = var.key
# sensitive - (optional) is a type of bool
sensitive = var.sensitive
# value - (optional) is a type of string
value = var.value
# workspace_id - (required) is a type of string
workspace_id = var.workspace_id
}
top
output "id" {
description = "returns a string"
value = tfe_variable.this.id
}
output "this" {
value = tfe_variable.this
}
top