Skip to content

Latest commit

 

History

History
115 lines (90 loc) · 1.94 KB

tfe_sentinel_policy.md

File metadata and controls

115 lines (90 loc) · 1.94 KB

tfe_sentinel_policy

back

Index

Terraform

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

top

Example Usage

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

Variables

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

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

Outputs

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