AWS Amazon EC2 VPN Gateway Route Propagation

This page shows how to write Terraform and CloudFormation for Amazon EC2 VPN Gateway Route Propagation and write them securely.

code-icon

Fix issues in your cloud & app configurations

Test for misconfigurations of this resource in your cloud.

get-started-button

Terraform Example (aws_vpn_gateway_route_propagation)

Requests automatic route propagation between a VPN gateway and a route table.

Note: This resource should not be used with a route table that has the propagating_vgws argument set. If that argument is set, any route propagation not explicitly listed in its value will be removed.

Parameters

Example Usage (from GitHub)

github-iconsayindil/Terraform
resource "aws_vpn_gateway_route_propagation" "vgw-public-routes" {
  count = length(data.aws_availability_zones.azs.names)
  vpn_gateway_id = aws_vpn_gateway.vgw.id
  route_table_id = element(var.vgw-public-route-table-id,count.index )

}
github-iconsharmamukesh76/Terraform-advanced
resource "aws_vpn_gateway_route_propagation" "vgw-public-routes" {
  count = length(data.aws_availability_zones.azs.names)
  vpn_gateway_id = aws_vpn_gateway.vgw.id
  route_table_id = element(var.vgw-public-route-table-id,count.index )

}
github-iconericdahl/tf-vpn-sandbox
resource "aws_vpn_gateway_route_propagation" "public" {
  route_table_id = aws_route_table.public.id
  vpn_gateway_id = aws_vpn_gateway.default.id
}

resource "aws_vpn_gateway_route_propagation" "private" {

CloudFormation Example (AWS::EC2::VPNGateway)

Specifies a virtual private gateway. A virtual private gateway is the endpoint on the VPC side of your VPN connection. You can create a virtual private gateway before creating the VPC itself.

For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.

Parameters

Frequently asked questions

What is AWS Amazon EC2 VPN Gateway Route Propagation?

AWS Amazon EC2 VPN Gateway Route Propagation is a resource for Amazon EC2 of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS Amazon EC2 VPN Gateway Route Propagation?

For Terraform, the sayindil/Terraform, sharmamukesh76/Terraform-advanced and ericdahl/tf-vpn-sandbox source code examples are useful. See the Terraform Example section for further details.