From e8976dca6b0d75283339ce0ceb4a71fdb33c658b Mon Sep 17 00:00:00 2001 From: Christopher Tiwald Date: Mon, 4 May 2015 12:21:22 -0400 Subject: [PATCH] aws: Add documentation for VPN connection routes. --- .../aws/r/vpc_connection_route.html.markdown | 55 +++++++++++++++++++ website/source/layouts/aws.erb | 4 ++ 2 files changed, 59 insertions(+) create mode 100644 website/source/docs/providers/aws/r/vpc_connection_route.html.markdown diff --git a/website/source/docs/providers/aws/r/vpc_connection_route.html.markdown b/website/source/docs/providers/aws/r/vpc_connection_route.html.markdown new file mode 100644 index 000000000..a0d2f2ccc --- /dev/null +++ b/website/source/docs/providers/aws/r/vpc_connection_route.html.markdown @@ -0,0 +1,55 @@ +--- +layout: "aws" +page_title: "AWS: aws_vpn_connection_route" +sidebar_current: "docs-aws-resource-vpn-connection-route" +description: |- + Provides a static route between a VPN connection and a customer gateway. +--- + +# aws\_vpn\_connection\_route + +Provides a static route between a VPN connection and a customer gateway. + +## Example Usage + +``` +resource "aws_vpc" "vpc" { + cidr_block = "10.0.0.0/16" +} + +resource "aws_vpn_gateway" "vpn_gateway" { + vpc_id = "${aws_vpc.vpc.id}" +} + +resource "aws_customer_gateway" "customer_gateway" { + bgp_asn = 60000 + ip_address = "172.0.0.1" + type = ipsec.1 +} + +resource "aws_vpn_connection" "main" { + vpn_gateway_id = "${aws_vpn_gateway.vpn_gateway.id}" + customer_gateway_id = "${aws_customer_gateway.customer_gateway.id}" + type = "ipsec.1" + static_routes_only = true +} + +resource "aws_vpn_connection_route" "office" { + destination_cidr_block = "192.168.10.0/24" + vpn_connection_id = "${aws_vpn_connection.main.id}" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `destination_cidr_block` - (Required) The CIDR block associated with the local subnet of the customer network. +* `vpn_connection_id` - (Required) The ID of the VPN connection. + +## Attribute Reference + +The following attributes are exported: + +* `destination_cidr_block` - The CIDR block associated with the local subnet of the customer network. +* `vpn_connection_id` - The ID of the VPN connection. diff --git a/website/source/layouts/aws.erb b/website/source/layouts/aws.erb index 4e83e735d..083453649 100644 --- a/website/source/layouts/aws.erb +++ b/website/source/layouts/aws.erb @@ -123,6 +123,10 @@ aws_vpn_connection + > + aws_vpn_connection_route + + > aws_vpn_gateway