Skip to content

Latest commit

 

History

History
112 lines (88 loc) · 1.96 KB

alicloud_ros_template.md

File metadata and controls

112 lines (88 loc) · 1.96 KB

alicloud_ros_template

back

Index

Terraform

terraform {
  required_providers {
    alicloud = ">= 1.120.0"
  }
}

top

Example Usage

module "alicloud_ros_template" {
  source = "./modules/alicloud/r/alicloud_ros_template"

  # description - (optional) is a type of string
  description = null
  # tags - (optional) is a type of map of string
  tags = {}
  # template_body - (optional) is a type of string
  template_body = null
  # template_name - (required) is a type of string
  template_name = null
  # template_url - (optional) is a type of string
  template_url = null
}

top

Variables

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

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

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

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

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

top

Resource

resource "alicloud_ros_template" "this" {
  # description - (optional) is a type of string
  description = var.description
  # tags - (optional) is a type of map of string
  tags = var.tags
  # template_body - (optional) is a type of string
  template_body = var.template_body
  # template_name - (required) is a type of string
  template_name = var.template_name
  # template_url - (optional) is a type of string
  template_url = var.template_url
}

top

Outputs

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

output "this" {
  value = alicloud_ros_template.this
}

top