Define a VPN Connection.
import { VpnConnection } from 'aws-cdk-lib/aws-ec2';Or use the module namespace:
import * as ec2 from 'aws-cdk-lib/aws-ec2';
// ec2.VpnConnectionConfiguration passed to the constructor as VpnConnectionProps.
vpcRequiredIVpcThe VPC to connect to.
VpnConnectionOptionsipRequiredinherited from VpnConnectionOptionsstringThe ip address of the customer gateway.
asnOptionalinherited from VpnConnectionOptionsnumberThe ASN of the customer gateway.
Default: 65000
staticRoutesOptionalinherited from VpnConnectionOptionsstring[]The static routes to be routed from the VPN gateway to the customer gateway.
Default: Dynamic routing (BGP)
tunnelOptionsOptionalinherited from VpnConnectionOptionsVpnTunnelOption[]The tunnel options for the VPN connection. At most two elements (one per tunnel). Duplicates not allowed.
Default: Amazon generated tunnel options
Everything you need to know about Amazon EC2 on one page. HD quality, print-friendly.
Download Free Infographicaws-ec2