-
Notifications
You must be signed in to change notification settings - Fork 9
/
vpc.config.yaml
181 lines (170 loc) · 3.63 KB
/
vpc.config.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
#
# With multiplier defaulting to 6 (maximum number of azs), there should
# be 42 allocations
# 0 - 10 should ne network
# 10 - 20 should be database / caching
# 20 - 30 should be compute resources
# 30 - 42 is left empty for arbitrary use
#
maximum_availability_zones: 5
component_version: 1.0.3
subnets:
vpc_public:
allocation: 0
name: Public
type: public
compute:
allocation: 1
name: Compute
type: private
persistence:
allocation: 2
name: Persistence
type: private
cache:
allocation: 3
name: Cache
type: private
enable_transit_vpc: false
# Manage the NS Records for the VPCs public hosted zone
# when `true` enables the propergation of NS record into either a parent
# zone in the same account of via a custom resource another AWS account
# requires a custom role in the other aws account allowing upsert
# permissions to the parent zone
manage_ns_records: false
#is false by default for backward compatibilty
# Set the string to format the Fn::Sub HostedZone
dns_format: ${EnvironmentName}.${DnsDomain}
#
# NACL Rules
#
# number: 50 - Rule number, rules must have different number values
# protocol: -1 - Port number (https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)
# action: allow|deny - default is allow if key is not set
# cidr: 0.0.0.0/0 - default is 0.0.0.0/0 if no value is set
# from: 1024 - start of the port range, if just a single port just specify `from`
# to: 65535 - end of the port range
public_acl_rules:
inbound:
-
number: 100
from: 22
-
number: 200
from: 80
-
number: 300
from: 443
-
number: 400
from: 1024
to: 65535
-
number: 500
protocol: 17
from: 1024
to: 65535
outbound:
-
number: 100
protocol: -1
from: 1024
to: 65535
securityGroups:
ops:
-
rules:
-
IpProtocol: tcp
FromPort: 22
ToPort: 22
-
IpProtocol: tcp
FromPort: 80
ToPort: 80
-
IpProtocol: tcp
FromPort: 3389
ToPort: 3389
ips:
- ops
dev:
-
rules:
-
IpProtocol: tcp
FromPort: 22
ToPort: 22
-
IpProtocol: tcp
FromPort: 80
ToPort: 80
-
IpProtocol: tcp
FromPort: 3389
ToPort: 3389
ips:
- dev
backplane:
-
rules:
-
IpProtocol: tcp
FromPort: 22
ToPort: 22
-
IpProtocol: tcp
FromPort: 80
ToPort: 80
-
IpProtocol: tcp
FromPort: 443
ToPort: 443
-
IpProtocol: tcp
FromPort: 25
ToPort: 25
-
IpProtocol: tcp
FromPort: 3389
ToPort: 3389
-
IpProtocol: udp
FromPort: 123
ToPort: 123
-
IpProtocol: udp
FromPort: 123
ToPort: 123
ips:
- stack
-
rules:
-
IpProtocol: tcp
FromPort: 5666
ToPort: 5666
ips:
- monitoring
ip_blocks:
public:
- 0.0.0.0/0
ops:
- 169.254.100.100/32
dev:
- 169.254.100.100/32
monitoring:
- 169.254.100.100/32
##### Configuration export or exported configuration (config_export) as key compared to (export_config) in template that means
##### Configuration OF export (or export configuration)
managed_accounts:
ops:
local: true
config_export:
global:
- maximum_availability_zones
- dns_format
lib_export:
global:
cfndsl:
- az