tfwriter

Terraform HCL code generator.

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

alicloud_ots_instance_attachment

back

Index

Terraform

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

top

Example Usage

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

  # instance_name - (required) is a type of string
  instance_name = null
  # vpc_name - (required) is a type of string
  vpc_name = null
  # vswitch_id - (required) is a type of string
  vswitch_id = null
}

top

Variables

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

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

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

top

Resource

resource "alicloud_ots_instance_attachment" "this" {
  # instance_name - (required) is a type of string
  instance_name = var.instance_name
  # vpc_name - (required) is a type of string
  vpc_name = var.vpc_name
  # vswitch_id - (required) is a type of string
  vswitch_id = var.vswitch_id
}

top

Outputs

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

output "vpc_id" {
  description = "returns a string"
  value       = alicloud_ots_instance_attachment.this.vpc_id
}

output "this" {
  value = alicloud_ots_instance_attachment.this
}

top