github.com/jmbataller/terraform@v0.6.8-0.20151125192640-b7a12e3a580c/website/source/docs/providers/aws/r/vpn_connection_route.html.markdown (about) 1 --- 2 layout: "aws" 3 page_title: "AWS: aws_vpn_connection_route" 4 sidebar_current: "docs-aws-resource-vpn-connection-route" 5 description: |- 6 Provides a static route between a VPN connection and a customer gateway. 7 --- 8 9 # aws\_vpn\_connection\_route 10 11 Provides a static route between a VPN connection and a customer gateway. 12 13 ## Example Usage 14 15 ``` 16 resource "aws_vpc" "vpc" { 17 cidr_block = "10.0.0.0/16" 18 } 19 20 resource "aws_vpn_gateway" "vpn_gateway" { 21 vpc_id = "${aws_vpc.vpc.id}" 22 } 23 24 resource "aws_customer_gateway" "customer_gateway" { 25 bgp_asn = 60000 26 ip_address = "172.0.0.1" 27 type = "ipsec.1" 28 } 29 30 resource "aws_vpn_connection" "main" { 31 vpn_gateway_id = "${aws_vpn_gateway.vpn_gateway.id}" 32 customer_gateway_id = "${aws_customer_gateway.customer_gateway.id}" 33 type = "ipsec.1" 34 static_routes_only = true 35 } 36 37 resource "aws_vpn_connection_route" "office" { 38 destination_cidr_block = "192.168.10.0/24" 39 vpn_connection_id = "${aws_vpn_connection.main.id}" 40 } 41 ``` 42 43 ## Argument Reference 44 45 The following arguments are supported: 46 47 * `destination_cidr_block` - (Required) The CIDR block associated with the local subnet of the customer network. 48 * `vpn_connection_id` - (Required) The ID of the VPN connection. 49 50 ## Attribute Reference 51 52 The following attributes are exported: 53 54 * `destination_cidr_block` - The CIDR block associated with the local subnet of the customer network. 55 * `vpn_connection_id` - The ID of the VPN connection.