github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/website/source/docs/providers/alicloud/r/vpc.html.markdown (about) 1 --- 2 layout: "alicloud" 3 page_title: "Alicloud: alicloud_vpc" 4 sidebar_current: "docs-alicloud-resource-vpc" 5 description: |- 6 Provides a Alicloud VPC resource. 7 --- 8 9 # alicloud\_vpc 10 11 Provides a VPC resource. 12 13 ~> **NOTE:** Terraform will auto build a router and a route table while it uses `alicloud_vpc` to build a vpc resource. 14 15 ## Example Usage 16 17 Basic Usage 18 19 ``` 20 resource "alicloud_vpc" "vpc" { 21 name = "tf_test_foo" 22 cidr_block = "172.16.0.0/12" 23 } 24 ``` 25 ## Argument Reference 26 27 The following arguments are supported: 28 29 * `cidr_block` - (Required, Forces new resource) The CIDR block for the VPC. 30 * `name` - (Optional) The name of the VPC. Defaults to null. 31 * `description` - (Optional) The VPC description. Defaults to null. 32 33 ## Attributes Reference 34 35 The following attributes are exported: 36 37 * `id` - The ID of the VPC. 38 * `cidr_block` - The CIDR block for the VPC. 39 * `name` - The name of the VPC. 40 * `description` - The description of the VPC. 41 * `router_id` - The ID of the router created by default on VPC creation.