@@ -6,7 +6,7 @@ Parameters:
6
6
Availability Zones are used for this deployment, and the logical order of your
7
7
selections is preserved.
8
8
Default: us-east-1a,us-east-1b,us-east-1c
9
- # AllowedValues: ["us-east-1a,us-east-1b,us-east-1c"]
9
+ # AllowedValues: ["us-east-1a,us-east-1b,us-east-1c"]
10
10
Type: List<AWS::EC2::AvailabilityZone::Name>
11
11
KeyPairName:
12
12
Description: The name of an existing public/private key pair, which allows you
@@ -16,44 +16,44 @@ Parameters:
16
16
AllowedPattern: ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(1[6-9]|2[0-8]))$
17
17
ConstraintDescription: CIDR block parameter must be in the form x.x.x.x/16-28
18
18
Default: 10.0.0.0/19
19
- AllowedValues: ['10.0.0.0/19']
19
+ AllowedValues: [ '10.0.0.0/19' ]
20
20
Description: The CIDR block for private subnet 1 located in Availability Zone 1
21
21
Type: String
22
22
PrivateSubnet2CIDR:
23
23
AllowedPattern: ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(1[6-9]|2[0-8]))$
24
24
ConstraintDescription: CIDR block parameter must be in the form x.x.x.x/16-28
25
25
Default: 10.0.32.0/19
26
- AllowedValues: ['10.0.32.0/19']
26
+ AllowedValues: [ '10.0.32.0/19' ]
27
27
Description: The CIDR block for private subnet 2 located in Availability Zone 2
28
28
Type: String
29
29
PrivateSubnet3CIDR:
30
30
AllowedPattern: ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(1[6-9]|2[0-8]))$
31
31
ConstraintDescription: CIDR block parameter must be in the form x.x.x.x/16-28
32
32
Default: 10.0.64.0/19
33
- AllowedValues: ['10.0.64.0/19']
33
+ AllowedValues: [ '10.0.64.0/19' ]
34
34
Description: The CIDR block for private subnet 3 located in Availability Zone 3
35
35
Type: String
36
36
PublicSubnet1CIDR:
37
37
AllowedPattern: ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(1[6-9]|2[0-8]))$
38
38
ConstraintDescription: CIDR block parameter must be in the form x.x.x.x/16-28
39
39
Default: 10.0.128.0/20
40
- AllowedValues: ['10.0.128.0/20']
40
+ AllowedValues: [ '10.0.128.0/20' ]
41
41
Description: CIDR block for the public (DMZ) subnet 1 located in Availability
42
42
Zone 1
43
43
Type: String
44
44
PublicSubnet2CIDR:
45
45
AllowedPattern: ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(1[6-9]|2[0-8]))$
46
46
ConstraintDescription: CIDR block parameter must be in the form x.x.x.x/16-28
47
47
Default: 10.0.144.0/20
48
- AllowedValues: ['10.0.144.0/20']
48
+ AllowedValues: [ '10.0.144.0/20' ]
49
49
Description: The CIDR block for the public (DMZ) subnet 2 located in Availability
50
50
Zone 2
51
51
Type: String
52
52
PublicSubnet3CIDR:
53
53
AllowedPattern: ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(1[6-9]|2[0-8]))$
54
54
ConstraintDescription: CIDR block parameter must be in the form x.x.x.x/16-28
55
55
Default: 10.0.160.0/20
56
- AllowedValues: ['10.0.160.0/20']
56
+ AllowedValues: [ '10.0.160.0/20' ]
57
57
Description: The CIDR block for the public (DMZ) subnet 3 located in Availability
58
58
Zone 3
59
59
Type: String
@@ -67,7 +67,7 @@ Parameters:
67
67
numbers, lowercase letters, uppercase letters, and hyphens (-). It cannot start
68
68
or end with a hyphen (-).
69
69
Type: String
70
- AllowedValues: ['aws-quickstart']
70
+ AllowedValues: [ 'aws-quickstart' ]
71
71
QSS3KeyPrefix:
72
72
AllowedPattern: ^[0-9a-zA-Z-/.]*$
73
73
ConstraintDescription: Quick Start key prefix can include numbers, lowercase letters,
@@ -77,7 +77,7 @@ Parameters:
77
77
can include numbers, lowercase letters, uppercase letters, hyphens (-), dots(.) and
78
78
forward slash (/).
79
79
Type: String
80
- AllowedValues: ['quickstart-amazon-eks/']
80
+ AllowedValues: [ 'quickstart-amazon-eks/' ]
81
81
CIDRAccessToADAndBastion:
82
82
AllowedPattern: ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$
83
83
ConstraintDescription: CIDR block parameter must be in the form x.x.x.x/x
@@ -89,12 +89,12 @@ Parameters:
89
89
AllowedPattern: ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(1[6-9]|2[0-8]))$
90
90
ConstraintDescription: CIDR block parameter must be in the form x.x.x.x/16-28
91
91
Default: 10.0.0.0/16
92
- AllowedValues: ['10.0.0.0/16']
92
+ AllowedValues: [ '10.0.0.0/16' ]
93
93
Description: The CIDR block for the VPC
94
94
Type: String
95
95
NumberOfAZs:
96
96
Type: String
97
- AllowedValues: ["2", "3"]
97
+ AllowedValues: [ "2", "3" ]
98
98
Default: "3"
99
99
Description: Number of Availability Zones to use in the VPC. This must match your selections in the list of Availability Zones parameter.
100
100
S3Bucket:
@@ -111,12 +111,12 @@ Parameters:
111
111
Description: S3Bucket where artifacts are stored
112
112
Type: String
113
113
Default: aws-bigdata-blog
114
- AllowedValues: ["aws-bigdata-blog"]
114
+ AllowedValues: [ "aws-bigdata-blog" ]
115
115
S3ArtifactKey:
116
116
Description: S3Key of the Lambda code
117
117
Type: String
118
118
Default: artifacts/aws-blog-emr-ranger
119
- AllowedValues: ["artifacts/aws-blog-emr-ranger"]
119
+ AllowedValues: [ "artifacts/aws-blog-emr-ranger" ]
120
120
ProjectVersion:
121
121
Default: 3.0
122
122
Description: Project version
@@ -184,11 +184,11 @@ Mappings:
184
184
PublicSubnet3CIDR: 10.0.5.0/24
185
185
PrivateSubnet3CIDR: 10.0.6.0/24
186
186
Conditions:
187
- 3AZDeployment: !Equals [!Ref NumberOfAZs, "3"]
187
+ 3AZDeployment: !Equals [ !Ref NumberOfAZs, "3" ]
188
188
2AZDeployment: !Or
189
- - !Equals [!Ref NumberOfAZs, "2"]
190
- - !Equals [!Ref NumberOfAZs, "3"]
191
- AttachAdditionalSourcePrefixToSG: !Equals [true, !Ref AttachAdditionalSourcePrefixToSG]
189
+ - !Equals [ !Ref NumberOfAZs, "2" ]
190
+ - !Equals [ !Ref NumberOfAZs, "3" ]
191
+ AttachAdditionalSourcePrefixToSG: !Equals [ true, !Ref AttachAdditionalSourcePrefixToSG ]
192
192
Resources:
193
193
STEP1VPC:
194
194
Type: AWS::CloudFormation::Stack
@@ -248,15 +248,15 @@ Resources:
248
248
Properties:
249
249
IpProtocol: '-1'
250
250
SourcePrefixListId: !Ref AdditionalSourcePrefixToSG
251
- GroupId: !GetAtt [STEP1aBastionHost, Outputs.BastionSecurityGroupID]
251
+ GroupId: !GetAtt [ STEP1aBastionHost, Outputs.BastionSecurityGroupID ]
252
252
STEP2WinAD:
253
253
DependsOn: STEP1VPC
254
254
Type: AWS::CloudFormation::Stack
255
255
Properties:
256
- TemplateURL: !Join ['', ['https://s3.amazonaws.com/', !Ref 'S3ArtifactBucket', '/', !Ref 'S3ArtifactKey', '/', !Ref 'ProjectVersion', '/cloudformation/', 'ec2-win-ad.template'] ]
256
+ TemplateURL: !Join [ '', [ 'https://s3.amazonaws.com/', !Ref 'S3ArtifactBucket', '/', !Ref 'S3ArtifactKey', '/', !Ref 'ProjectVersion', '/cloudformation/', 'ec2-win-ad.template' ] ]
257
257
Parameters:
258
258
KeyPairName: !Ref 'KeyPairName'
259
- # ImageId: !GetAtt 'STEP0AMILookup.Outputs.AMIID'
259
+ # ImageId: !GetAtt 'STEP0AMILookup.Outputs.AMIID'
260
260
ImageId: !Ref ADServerAMI
261
261
Subnet: !GetAtt 'STEP1VPC.Outputs.PublicSubnet1ID'
262
262
VPC: !GetAtt 'STEP1VPC.Outputs.VPCID'
@@ -275,20 +275,20 @@ Resources:
275
275
GroupId: !GetAtt [ STEP2WinAD, Outputs.ADSecurityGroupID ]
276
276
Outputs:
277
277
LDAPHostPrivateIP:
278
- Value: !GetAtt [STEP2WinAD, Outputs.LDAPHostPrivateIP]
278
+ Value: !GetAtt [ STEP2WinAD, Outputs.LDAPHostPrivateIP ]
279
279
Description: LDAP Host Private IP address
280
280
VPC:
281
- Value: !GetAtt [STEP1VPC, Outputs.VPCID]
281
+ Value: !GetAtt [ STEP1VPC, Outputs.VPCID ]
282
282
Description: VPC ID
283
283
PrivateSubnet1AID:
284
- Value: !GetAtt [STEP1VPC, Outputs.PrivateSubnet1AID]
284
+ Value: !GetAtt [ STEP1VPC, Outputs.PrivateSubnet1AID ]
285
285
Description: PrivateSubnet1AID
286
286
PrivateSubnet2AID:
287
- Value: !GetAtt [STEP1VPC, Outputs.PrivateSubnet2AID]
287
+ Value: !GetAtt [ STEP1VPC, Outputs.PrivateSubnet2AID ]
288
288
Description: PrivateSubnet2AID
289
289
PublicSubnet1AID:
290
- Value: !GetAtt [STEP1VPC, Outputs.PublicSubnet1ID]
290
+ Value: !GetAtt [ STEP1VPC, Outputs.PublicSubnet1ID ]
291
291
Description: PublicSubnet1AID
292
292
PublicSubnet2AID:
293
- Value: !GetAtt [STEP1VPC, Outputs.PublicSubnet2ID]
293
+ Value: !GetAtt [ STEP1VPC, Outputs.PublicSubnet2ID ]
294
294
Description: PublicSubnet2AID
0 commit comments