github.com/mhlias/terraform@v0.6.12-0.20161118140322-a5d6410b912a/website/source/docs/providers/aws/r/dc_intra_virtual_interface.html.markdown (about) 1 --- 2 layout: "aws" 3 page_title: "AWS: dc_intra_virtual_interface" 4 sidebar_current: "docs-aws-resource-dc-intra-virtual-interface" 5 description: |- 6 Provides a resource to create a DirectConnect Virtual Interface to be used on a separate account from the one DirectConnect is on. 7 --- 8 9 # aws\_dc\_intra_virtual_interface 10 11 Provides a resource to allocate a DirectConnect Virtual Interface to be used on a separate account from the one DirectConnect is on. 12 13 ## Example Usage 14 15 ``` 16 resource "aws_dc_intra_virtual_interface" "vif" { 17 connection_id = "dxcon-xyz123" 18 virtual_interface_name = "my-vif" 19 asn = "12345" 20 vlan = "1024" 21 auth_key = "my_super_secret_bgp_key" 22 amazon_address = "10.0.0.45/30" 23 customer_address = "10.0.0.46/30" 24 interface_type = "private" 25 owner_account_id = "123456789" 26 27 } 28 ``` 29 30 ## Argument Reference 31 32 The following arguments are supported: 33 34 * `connection_id` - (Required) The connection ID for the DirectConnect connection. 35 * `virtual_interface_name` - (Required) The name of the virtual interface. 36 * `asn` - (Required) The BGP autonomous system number. 37 * `vlan` - (Required) The vlan id. 38 * `auth_key` - (Optional) The BGP secret auth key. 39 * `amazon_address` - (Optional) The IP along with the subnet mask for amazon's side of the small subnet used for the 2 routers BGP communication. 40 * `customer_address` - (Optional) The IP along with the subnet mask for your side of the small subnet used for the 2 routers BGP communication. 41 * `interface_type` - (Required) The type of the virtual interface [private,public]. 42 * `owner_account_id` - (Required) The ID of the foreign account that is going to be allocated the virtual interface. 43 44 45 46 -> **Note:** For this to actually create the virtual interface it needs to be confirmed on the account that will use it. 47 You can do that by using the `aws_dc_intra_virtual_interface_confirm` resource. An example is provided there how to accomplish that in a single run if desired. 48 49 ## Attributes Reference 50 51 The following attributes are exported: 52 53 * `id` - The ID of virtual interface. 54 * `amazon_address` - The IP address for amazon's interface (when autogenerated). 55 * `customer_address` - The IP address for your interface (when autogenerated). 56 57 58