Skip to content

Instantly share code, notes, and snippets.

@dblessing
Last active August 29, 2015 14:18
Show Gist options
  • Save dblessing/b8dc31b70003d56998aa to your computer and use it in GitHub Desktop.
Save dblessing/b8dc31b70003d56998aa to your computer and use it in GitHub Desktop.
VPN Complete Example
# Below is adjusted to take the SDK options in to account
aws_vpn_gateway 'virtual-gateway' do
vpc 'top'
end
aws_customer_gateway 'customer-gateway' do
bgp_asn '65000' # optional...
public_ip 'x.x.x.x'
end
aws_vpn_connection 'vpn-connection' do
virtual_private_gateway 'virtual-gateway'
customer_gateway 'customer-gateway'
static_routes_only true
# Below actually represents another resource in the SDK - 'vpn_connection_routes'
# but can probably be represented as a parameter on the vpn_connection resource here
static_routes ['172.31.10.0/24', '10.0.0.0/24']
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment