Skip to content

Instantly share code, notes, and snippets.

@AbeIka
Created July 7, 2016 05:41
Show Gist options
  • Save AbeIka/3dcba3bb170f9df37141727cbce31cc7 to your computer and use it in GitHub Desktop.
Save AbeIka/3dcba3bb170f9df37141727cbce31cc7 to your computer and use it in GitHub Desktop.
{
"AWSTemplateFormatVersion": "2010-09-09",
"Metadata": {
},
"Resources": {
"VPNGateway": {
"Type": "AWS::EC2::VPNGateway",
"Properties": {
"Type": "ipsec.1"
}
},
"VPNGatewayAttachment": {
"Type": "AWS::EC2::VPCGatewayAttachment",
"Properties": {
"VpcId": {
"Ref": "VPCID"
},
"VpnGatewayId": {
"Ref": "VPNGateway"
}
}
},
"RoutePropagation": {
"Type": "AWS::EC2::VPNGatewayRoutePropagation",
"DependsOn": "VPNGatewayAttachment",
"Properties": {
"RouteTableIds": [
{
"Ref": "RouteTableID"
}
],
"VpnGatewayId": {
"Ref": "VPNGateway"
}
}
}
},
"Parameters": {
"VPCID": {
"Type": "AWS::EC2::VPC::Id"
},
"RouteTableID": {
"Type": "String"
}
},
"Outputs": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment