@@ -15,6 +15,7 @@ Parameters:
1515 VpcIpv6CidrBlocks : { Type: CommaDelimitedList }
1616 AvailabilityZoneSelectorServiceToken : { Type: String }
1717 NetworkAclName : { Type: String }
18+ Subnet1NatGatewayId : { Type: String }
1819
1920Conditions :
2021 EnableNestedChangeSetScrubbingResources : !Equals [!Ref NestedChangeSetScrubbingResourcesState, Enabled]
@@ -28,19 +29,19 @@ Resources:
2829 ServiceToken : !Ref AvailabilityZoneSelectorServiceToken
2930
3031 # Egress-only internet gateway
31- EgressOnlyInternetGateway :
32- Type : AWS::EC2::EgressOnlyInternetGateway
33- Properties :
34- Tags :
35- - { Key: Name, Value: !Sub "${RootStackName}_shared_private" }
36- - { Key: prx:meta:tagging-version, Value: "2021-04-07" }
37- - { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
38- - { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
39- - { Key: prx:cloudformation:root-stack-name, Value: !Ref RootStackName }
40- - { Key: prx:cloudformation:root-stack-id, Value: !Ref RootStackId }
41- - { Key: prx:ops:environment, Value: !Ref EnvironmentType }
42- - { Key: prx:dev:application, Value: Common }
43- VpcId : !Ref VpcId
32+ # EgressOnlyInternetGateway:
33+ # Type: AWS::EC2::EgressOnlyInternetGateway
34+ # Properties:
35+ # Tags:
36+ # - { Key: Name, Value: !Sub "${RootStackName}_shared_private" }
37+ # - { Key: prx:meta:tagging-version, Value: "2021-04-07" }
38+ # - { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName }
39+ # - { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId }
40+ # - { Key: prx:cloudformation:root-stack-name, Value: !Ref RootStackName }
41+ # - { Key: prx:cloudformation:root-stack-id, Value: !Ref RootStackId }
42+ # - { Key: prx:ops:environment, Value: !Ref EnvironmentType }
43+ # - { Key: prx:dev:application, Value: Common }
44+ # VpcId: !Ref VpcId
4445
4546 # Routing for private subnets. A subnet being associated with this route
4647 # table is what makes it a private subnet, since there is no internet gateway
@@ -59,14 +60,12 @@ Resources:
5960 - { Key: prx:ops:environment, Value: !Ref EnvironmentType }
6061 - { Key: prx:dev:application, Value: Common }
6162
62- # Add a Egress-only Internet Gateway route, to allow resources in private subnets
63- # to access the internet without being exposed to the internet directly
64- PrivateRouteTableEgressOnlyRoute :
63+ PrivateRouteTableNatRoute :
6564 Type : AWS::EC2::Route
6665 Properties :
6766 RouteTableId : !Ref PrivateRouteTable
6867 DestinationIpv6CidrBlock : ::/0
69- EgressOnlyInternetGatewayId : !Ref EgressOnlyInternetGateway
68+ NatGatewayId : !Ref Subnet1NatGatewayId
7069
7170 # Private subnets
7271 PrivateSubnet1 :
0 commit comments