-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add notes for setting up a VPN with mu.yml
- Loading branch information
Showing
4 changed files
with
77 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Examples | ||
These examples are not intended to be run directly. Rather, they serve as a reference that can be consulted when creating your own `mu.yml` files. | ||
|
||
For detailed steps to create your own project, check out the [quickstart](https://github.com/stelligent/mu/wiki/Quickstart#steps). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
--- | ||
|
||
environments: | ||
- name: prod | ||
|
||
templates: | ||
mu-vpc-prod: | ||
Resources: | ||
CustomerGateway: | ||
Type: "AWS::EC2::CustomerGateway" | ||
Properties: | ||
BgpAsn: 65000 | ||
IpAddress: 1.1.1.1 # Public IP of remote VPN device | ||
Type: ipsec.1 | ||
VirtualPrivateGateway: | ||
Type: "AWS::EC2::VPNGateway" | ||
Properties: | ||
Type: ipsec.1 | ||
VPNconnection: | ||
Type: "AWS::EC2::VPNConnection" | ||
Properties: | ||
Type: ipsec.1 | ||
CustomerGatewayId: | ||
Ref: CustomerGateway | ||
StaticRoutesOnly: true | ||
VpnGatewayId: | ||
Ref: VirtualPrivateGateway | ||
DependsOn: VPCGatewayAttachment | ||
VPCGatewayAttachment: | ||
Type: "AWS::EC2::VPCGatewayAttachment" | ||
Properties: | ||
VpcId: | ||
Ref: VPC | ||
VpnGatewayId: | ||
Ref: VirtualPrivateGateway | ||
DependsOn: VirtualPrivateGateway | ||
VPNInstanceInboundNetworkAclEntry1: | ||
Type: AWS::EC2::NetworkAclEntry | ||
Properties: | ||
NetworkAclId: | ||
Ref: InstanceNetworkAcl | ||
RuleNumber: '105' | ||
Protocol: '6' | ||
RuleAction: allow | ||
Egress: 'false' | ||
CidrBlock: 10.50.0.0/24 # CIDR at remote network | ||
PortRange: | ||
From: '0' | ||
To: '65535' | ||
VPNInstanceOutboundUdpNetworkAclEntry1: | ||
Type: AWS::EC2::NetworkAclEntry | ||
Properties: | ||
NetworkAclId: | ||
Ref: InstanceNetworkAcl | ||
RuleNumber: '105' | ||
Protocol: '17' | ||
RuleAction: allow | ||
Egress: 'true' | ||
CidrBlock: 10.50.0.0/24 # CIDR at remote network | ||
PortRange: | ||
From: '0' | ||
To: '65535' | ||
VPNRoutePropagation: | ||
Type: "AWS::EC2::VPNGatewayRoutePropagation" | ||
DependsOn: VPCGatewayAttachment | ||
Properties: | ||
RouteTableIds: | ||
- Ref: InstanceRouteTable | ||
VpnGatewayId: | ||
Ref: VirtualPrivateGateway |
Submodule wiki
updated
from fb68e0 to dbc502