AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::EC2::VPNGatewayRoutePropagation

CfnVPNGatewayRoutePropagation

Enables a virtual private gateway (VGW) to propagate routes to the specified route table of a VPC. If you reference a VPN gateway that is in the same template as your VPN gateway route propagation, you must explicitly declare a dependency on the VPN gateway attachment. The `AWS::EC2::VPNGatewayRoutePropagation` resource cannot use the VPN gateway until it has successfully attached to the VPC. Add a [DependsOn Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html) in the `AWS::EC2::VPNGatewayRoutePropagation` resource to explicitly declare a dependency on the VPN gateway attachment.

Import

import { CfnVPNGatewayRoutePropagation } from 'aws-cdk-lib/aws-ec2';

Or use the module namespace:

import * as ec2 from 'aws-cdk-lib/aws-ec2';
// ec2.CfnVPNGatewayRoutePropagation

Properties

Configuration passed to the constructor as CfnVPNGatewayRoutePropagationProps.

routeTableIdsRequired
string[]

The ID of the route table. The routing table must be associated with the same VPC that the virtual private gateway is attached to.

vpnGatewayIdRequired
string

The ID of the virtual private gateway that is attached to a VPC. The virtual private gateway must be attached to the same VPC that the routing tables are associated with.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the Amazon EC2 Cheat Sheet

Everything you need to know about Amazon EC2 on one page. HD quality, print-friendly.

Download Free Infographic