tfwriter

Terraform HCL code generator.

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

alicloud_ess_attachment

back

Index

Terraform

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

top

Example Usage

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

  # force - (optional) is a type of bool
  force = null
  # instance_ids - (required) is a type of set of string
  instance_ids = []
  # scaling_group_id - (required) is a type of string
  scaling_group_id = null
}

top

Variables

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

variable "instance_ids" {
  description = "(required)"
  type        = set(string)
}

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

top

Resource

resource "alicloud_ess_attachment" "this" {
  # force - (optional) is a type of bool
  force = var.force
  # instance_ids - (required) is a type of set of string
  instance_ids = var.instance_ids
  # scaling_group_id - (required) is a type of string
  scaling_group_id = var.scaling_group_id
}

top

Outputs

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

output "this" {
  value = alicloud_ess_attachment.this
}

top