back
terraform {
required_providers {
tfe = ">= 0.24.0"
}
}
top
module "tfe_sentinel_policy" {
source = "./modules/tfe/r/tfe_sentinel_policy"
# description - (optional) is a type of string
description = null
# enforce_mode - (optional) is a type of string
enforce_mode = null
# name - (required) is a type of string
name = null
# organization - (required) is a type of string
organization = null
# policy - (required) is a type of string
policy = null
}
top
variable "description" {
description = "(optional)"
type = string
default = null
}
variable "enforce_mode" {
description = "(optional)"
type = string
default = null
}
variable "name" {
description = "(required)"
type = string
}
variable "organization" {
description = "(required)"
type = string
}
variable "policy" {
description = "(required)"
type = string
}
top
resource "tfe_sentinel_policy" "this" {
# description - (optional) is a type of string
description = var.description
# enforce_mode - (optional) is a type of string
enforce_mode = var.enforce_mode
# name - (required) is a type of string
name = var.name
# organization - (required) is a type of string
organization = var.organization
# policy - (required) is a type of string
policy = var.policy
}
top
output "description" {
description = "returns a string"
value = tfe_sentinel_policy.this.description
}
output "id" {
description = "returns a string"
value = tfe_sentinel_policy.this.id
}
output "this" {
value = tfe_sentinel_policy.this
}
top