tfwriter

Terraform HCL code generator.

Download as .zip Download as .tar.gz View on GitHub

alicloud_cs_application

back

Index

Terraform

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

top

Example Usage

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

  # blue_green - (optional) is a type of bool
  blue_green = null
  # blue_green_confirm - (optional) is a type of bool
  blue_green_confirm = null
  # cluster_name - (required) is a type of string
  cluster_name = null
  # description - (optional) is a type of string
  description = null
  # environment - (optional) is a type of map of string
  environment = {}
  # latest_image - (optional) is a type of bool
  latest_image = null
  # name - (required) is a type of string
  name = null
  # template - (required) is a type of string
  template = null
  # version - (optional) is a type of string
  version = null
}

top

Variables

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

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

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

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

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

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

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

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

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

top

Resource

resource "alicloud_cs_application" "this" {
  # blue_green - (optional) is a type of bool
  blue_green = var.blue_green
  # blue_green_confirm - (optional) is a type of bool
  blue_green_confirm = var.blue_green_confirm
  # cluster_name - (required) is a type of string
  cluster_name = var.cluster_name
  # description - (optional) is a type of string
  description = var.description
  # environment - (optional) is a type of map of string
  environment = var.environment
  # latest_image - (optional) is a type of bool
  latest_image = var.latest_image
  # name - (required) is a type of string
  name = var.name
  # template - (required) is a type of string
  template = var.template
  # version - (optional) is a type of string
  version = var.version
}

top

Outputs

output "default_domain" {
  description = "returns a string"
  value       = alicloud_cs_application.this.default_domain
}

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

output "services" {
  description = "returns a list of object"
  value       = alicloud_cs_application.this.services
}

output "this" {
  value = alicloud_cs_application.this
}

top