github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/cloudstack/r/vpc.html.markdown (about)

     1  ---
     2  layout: "cloudstack"
     3  page_title: "CloudStack: cloudstack_vpc"
     4  sidebar_current: "docs-cloudstack-resource-vpc"
     5  description: |-
     6    Creates a VPC.
     7  ---
     8  
     9  # cloudstack_vpc
    10  
    11  Creates a VPC.
    12  
    13  ## Example Usage
    14  
    15  Basic usage:
    16  
    17  ```hcl
    18  resource "cloudstack_vpc" "default" {
    19    name         = "test-vpc"
    20    cidr         = "10.0.0.0/16"
    21    vpc_offering = "Default VPC Offering"
    22    zone         = "zone-1"
    23  }
    24  ```
    25  
    26  ## Argument Reference
    27  
    28  The following arguments are supported:
    29  
    30  * `name` - (Required) The name of the VPC.
    31  
    32  * `display_text` - (Optional) The display text of the VPC.
    33  
    34  * `cidr` - (Required) The CIDR block for the VPC. Changing this forces a new
    35      resource to be created.
    36  
    37  * `vpc_offering` - (Required) The name or ID of the VPC offering to use for this VPC.
    38      Changing this forces a new resource to be created.
    39  
    40  * `network_domain` - (Optional) The default DNS domain for networks created in
    41      this VPC. Changing this forces a new resource to be created.
    42  
    43  * `project` - (Optional) The name or ID of the project to deploy this
    44      instance to. Changing this forces a new resource to be created.
    45  
    46  * `zone` - (Required) The name or ID of the zone where this disk volume will be
    47      available. Changing this forces a new resource to be created.
    48  
    49  ## Attributes Reference
    50  
    51  The following attributes are exported:
    52  
    53  * `id` - The ID of the VPC.
    54  * `display_text` - The display text of the VPC.
    55  * `source_nat_ip` - The source NAT IP assigned to the VPC.