tfwriter

Terraform HCL code generator.

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

alicloud_ots_instance_attachments

back

Index

Terraform

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

top

Example Usage

module "alicloud_ots_instance_attachments" {
  source = "./modules/alicloud/d/alicloud_ots_instance_attachments"

  # instance_name - (required) is a type of string
  instance_name = null
  # name_regex - (optional) is a type of string
  name_regex = null
  # output_file - (optional) is a type of string
  output_file = null
}

top

Variables

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

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

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

top

Datasource

data "alicloud_ots_instance_attachments" "this" {
  # instance_name - (required) is a type of string
  instance_name = var.instance_name
  # name_regex - (optional) is a type of string
  name_regex = var.name_regex
  # output_file - (optional) is a type of string
  output_file = var.output_file
}

top

Outputs

output "attachments" {
  description = "returns a list of object"
  value       = data.alicloud_ots_instance_attachments.this.attachments
}

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

output "names" {
  description = "returns a list of string"
  value       = data.alicloud_ots_instance_attachments.this.names
}

output "vpc_ids" {
  description = "returns a list of string"
  value       = data.alicloud_ots_instance_attachments.this.vpc_ids
}

output "this" {
  value = alicloud_ots_instance_attachments.this
}

top