mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-14 04:01:09 -04:00
* add docs * add new resource ess * add examples * update aliyun go * merge master * fix ci
1.2 KiB
1.2 KiB
layout, page_title, sidebar_current, description
| layout | page_title | sidebar_current | description |
|---|---|---|---|
| alicloud | Alicloud: alicloud_vswitch | docs-alicloud-resource-vswitch | Provides a Alicloud VPC switch resource. |
alicloud_vswitch
Provides a VPC switch resource.
Example Usage
Basic Usage
resource "alicloud_vpc" "vpc" {
name = "tf_test_foo"
cidr_block = "172.16.0.0/12"
}
resource "alicloud_vswitch" "vsw" {
vpc_id = "${alicloud_vpc.vpc.id}"
cidr_block = "172.16.0.0/21"
availability_zone = "cn-beijing-b"
}
Argument Reference
The following arguments are supported:
availability_zone- (Required, Forces new resource) The AZ for the switch.vpc_id- (Required, Forces new resource) The VPC ID.cidr_block- (Required, Forces new resource) The CIDR block for the switch.name- (Optional) The name of the switch. Defaults to null.description- (Optional) The switch description. Defaults to null.
Attributes Reference
The following attributes are exported:
id- The ID of the switch.availability_zoneThe AZ for the switch.cidr_block- The CIDR block for the switch.vpc_id- The VPC ID.name- The name of the switch.description- The description of the switch.