Skip to content

Latest commit

 

History

History
102 lines (78 loc) · 1.63 KB

File metadata and controls

102 lines (78 loc) · 1.63 KB

dme_template

back

Index

Terraform

terraform {
  required_providers {
    dme = ">= 0.1.3"
  }
}

top

Example Usage

module "dme_template" {
  source = "./modules/dme/d/dme_template"

  # domain_ids - (optional) is a type of list of number
  domain_ids = []
  # name - (required) is a type of string
  name = null
  # public_template - (optional) is a type of string
  public_template = null
}

top

Variables

variable "domain_ids" {
  description = "(optional)"
  type        = list(number)
  default     = null
}

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

variable "public_template" {
  description = "(optional)"
  type        = string
  default     = null
}

top

Datasource

data "dme_template" "this" {
  # domain_ids - (optional) is a type of list of number
  domain_ids = var.domain_ids
  # name - (required) is a type of string
  name = var.name
  # public_template - (optional) is a type of string
  public_template = var.public_template
}

top

Outputs

output "domain_ids" {
  description = "returns a list of number"
  value       = data.dme_template.this.domain_ids
}

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

output "public_template" {
  description = "returns a string"
  value       = data.dme_template.this.public_template
}

output "this" {
  value = dme_template.this
}

top