-
Notifications
You must be signed in to change notification settings - Fork 9
/
route-private.yml
36 lines (35 loc) · 1012 Bytes
/
route-private.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Resources:
DefaultPrivateRouteTable:
Type: AWS::EC2::RouteTable
Properties:
VpcId:
Ref: ServerlessVPC
DefaultPrivateRoute:
Type: AWS::EC2::Route
Properties:
RouteTableId:
Ref: DefaultPrivateRouteTable
DestinationCidrBlock: 0.0.0.0/0
NatGatewayId:
Ref: ServerlessNatGateway
SubnetRouteTableAssociationLambdaPrivateA:
Type: AWS::EC2::SubnetRouteTableAssociation
Properties:
SubnetId:
Ref: ServerlessPrivateSubnetA
RouteTableId:
Ref: DefaultPrivateRouteTable
SubnetRouteTableAssociationLambdaPrivateB:
Type: AWS::EC2::SubnetRouteTableAssociation
Properties:
SubnetId:
Ref: ServerlessPrivateSubnetB
RouteTableId:
Ref: DefaultPrivateRouteTable
SubnetRouteTableAssociationLambdaPrivateC:
Type: AWS::EC2::SubnetRouteTableAssociation
Properties:
SubnetId:
Ref: ServerlessPrivateSubnetC
RouteTableId:
Ref: DefaultPrivateRouteTable