Skip to content

Instantly share code, notes, and snippets.

@antklim
Last active March 9, 2018 05:56
Show Gist options
  • Save antklim/4c78be7ac26eeb95c82cea9cf850eb30 to your computer and use it in GitHub Desktop.
Save antklim/4c78be7ac26eeb95c82cea9cf850eb30 to your computer and use it in GitHub Desktop.
NatGateway1EIP:
Type: AWS::EC2::EIP
DependsOn: InternetGatewayAttachment
Properties:
Domain: vpc
NatGateway2EIP:
Type: AWS::EC2::EIP
DependsOn: InternetGatewayAttachment
Properties:
Domain: vpc
NatGateway1:
Type: AWS::EC2::NatGateway
Properties:
AllocationId: !GetAtt NatGateway1EIP.AllocationId
SubnetId: !Ref PublicSubnet1
NatGateway2:
Type: AWS::EC2::NatGateway
Properties:
AllocationId: !GetAtt NatGateway2EIP.AllocationId
SubnetId: !Ref PublicSubnet2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment