alicloud_ens_vswitch

Provides a ENS Vswitch resource.

For information about ENS Vswitch and how to use it, see What is Vswitch.

Example Usage

Basic Usage

variable "name" {
  default = "terraform-example"
}

resource "alicloud_ens_network" "default" {
  network_name = var.name

  description   = var.name
  cidr_block    = "192.168.2.0/24"
  ens_region_id = "cn-chenzhou-telecom_unicom_cmcc"
}


resource "alicloud_ens_vswitch" "default" {
  description  = var.name
  cidr_block   = "192.168.2.0/24"
  vswitch_name = var.name

  ens_region_id = "cn-chenzhou-telecom_unicom_cmcc"
  network_id    = alicloud_ens_network.default.id
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

ENS Vswitch can be imported using the id, e.g.

$ terraform import alicloud_ens_vswitch.example <id>