-
Notifications
You must be signed in to change notification settings - Fork 0
/
route_tables.cfn.yaml
73 lines (72 loc) · 1.93 KB
/
route_tables.cfn.yaml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
AWSTemplateFormatVersion: 2010-09-09
Description: Route tables
Parameters:
VPCStackName:
Description: Name of the active VPC stack
Type: String
MinLength: 1
MaxLength: 255
AllowedPattern: '^[a-zA-Z][-a-zA-Z0-9]*$'
Default: vpc01
Resources:
PrivateRouteTableA:
Type: 'AWS::EC2::RouteTable'
Properties:
VpcId: !ImportValue
'Fn::Sub': '${VPCStackName}-VPCID'
Tags:
- Key: Application
Value: !Ref 'AWS::StackName'
- Key: Network
Value: Private
PrivateRouteTableB:
Type: 'AWS::EC2::RouteTable'
Properties:
VpcId: !ImportValue
'Fn::Sub': '${VPCStackName}-VPCID'
Tags:
- Key: Application
Value: !Ref 'AWS::StackName'
- Key: Network
Value: Private
PublicRouteTableA:
Type: 'AWS::EC2::RouteTable'
Properties:
VpcId: !ImportValue
'Fn::Sub': '${VPCStackName}-VPCID'
Tags:
- Key: Application
Value: !Ref 'AWS::StackName'
- Key: Network
Value: Public
PublicRouteTableB:
Type: 'AWS::EC2::RouteTable'
Properties:
VpcId: !ImportValue
'Fn::Sub': '${VPCStackName}-VPCID'
Tags:
- Key: Application
Value: !Ref 'AWS::StackName'
- Key: Network
Value: Public
Outputs:
PrivateRouteTableA:
Description: PrivateRouteTableA
Value: !Ref PrivateRouteTableA
Export:
Name: !Sub '${AWS::StackName}-PrivateRouteTableA'
PrivateRouteTableB:
Description: PrivateRouteTableB
Value: !Ref PrivateRouteTableB
Export:
Name: !Sub '${AWS::StackName}-PrivateRouteTableB'
PublicRouteTableA:
Description: PublicRouteTableA
Value: !Ref PublicRouteTableA
Export:
Name: !Sub '${AWS::StackName}-PublicRouteTableA'
PublicRouteTableB:
Description: PublicRouteTableB
Value: !Ref PublicRouteTableB
Export:
Name: !Sub '${AWS::StackName}-PublicRouteTableB'