tfwriter

Terraform HCL code generator.

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

alicloud_network_interface_attachment

back

Index

Terraform

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

top

Example Usage

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

  # instance_id - (required) is a type of string
  instance_id = null
  # network_interface_id - (required) is a type of string
  network_interface_id = null
}

top

Variables

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

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

top

Resource

resource "alicloud_network_interface_attachment" "this" {
  # instance_id - (required) is a type of string
  instance_id = var.instance_id
  # network_interface_id - (required) is a type of string
  network_interface_id = var.network_interface_id
}

top

Outputs

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

output "this" {
  value = alicloud_network_interface_attachment.this
}

top