github.com/cbroglie/terraform@v0.7.0-rc3.0.20170410193827-735dfc416d46/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 ```hcl 20 resource "alicloud_vpc" "vpc" { 21 name = "tf_test_foo" 22 cidr_block = "172.16.0.0/12" 23 } 24 ``` 25 26 ## Argument Reference 27 28 The following arguments are supported: 29 30 * `cidr_block` - (Required, Forces new resource) The CIDR block for the VPC. 31 * `name` - (Optional) The name of the VPC. Defaults to null. 32 * `description` - (Optional) The VPC description. Defaults to null. 33 34 ## Attributes Reference 35 36 The following attributes are exported: 37 38 * `id` - The ID of the VPC. 39 * `cidr_block` - The CIDR block for the VPC. 40 * `name` - The name of the VPC. 41 * `description` - The description of the VPC. 42 * `router_id` - The ID of the router created by default on VPC creation.