Skip to content

Commit e45521e

Browse files
committed
Text edits for the CloudFormation templates
Because we can no longer use "UPI" in customer-facing documentation and the CloudFormation templates in /installer are published in /openshift-docs, I want to change the source templates instead of having to always reproduce the fix in the docs repo. I'm making a few other style and changes to the parameter descriptions. Per a comment on a docs PR (openshift/openshift-docs#15059), the subnet type for the worker CloudFormation template needs to change to PrivateSubnet from WorkerSubnet. Trevor clarified that the subnet in the worker does not need to be private. s/PrivateSubnet/Subnet in just that CloudFormation Template.
1 parent 5f631ff commit e45521e

6 files changed

Lines changed: 79 additions & 79 deletions

File tree

upi/aws/cloudformation/01_vpc.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ Description: Template for Best Practice VPC with 1-3 AZs
44
Parameters:
55
VpcCidr:
66
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-4]))$
7-
ConstraintDescription: CIDR block parameter must be in the form x.x.x.x/16-24
7+
ConstraintDescription: CIDR block parameter must be in the form x.x.x.x/16-24.
88
Default: 10.0.0.0/16
9-
Description: CIDR block for VPC
9+
Description: CIDR block for VPC.
1010
Type: String
1111
AvailabilityZoneCount:
12-
ConstraintDescription: "The number of availability zones (Min: 1, Max: 3)"
12+
ConstraintDescription: "The number of availability zones. (Min: 1, Max: 3)"
1313
MinValue: 1
1414
MaxValue: 3
1515
Default: 1
16-
Description: "How many AZs to create VPC subnets for (Min: 1, Max: 3)"
16+
Description: "How many AZs to create VPC subnets for. (Min: 1, Max: 3)"
1717
Type: Number
1818
SubnetBits:
19-
ConstraintDescription: CIDR block parameter must be in the form x.x.x.x/19-27
19+
ConstraintDescription: CIDR block parameter must be in the form x.x.x.x/19-27.
2020
MinValue: 5
2121
MaxValue: 13
2222
Default: 12
@@ -351,17 +351,17 @@ Resources:
351351

352352
Outputs:
353353
VpcId:
354-
Description: ID of the newly created VPC
354+
Description: ID of the new VPC.
355355
Value: !Ref VPC
356356
PublicSubnetIds:
357-
Description: Subnet IDs of the public subnets
357+
Description: Subnet IDs of the public subnets.
358358
Value:
359359
!Join [
360360
",",
361361
[!Ref PublicSubnet, !If [DoAz2, !Ref PublicSubnet2, !Ref "AWS::NoValue"], !If [DoAz3, !Ref PublicSubnet3, !Ref "AWS::NoValue"]]
362362
]
363363
PrivateSubnetIds:
364-
Description: Subnet IDs of the private subnets
364+
Description: Subnet IDs of the private subnets.
365365
Value:
366366
!Join [
367367
",",

upi/aws/cloudformation/02_cluster_infra.yaml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
AWSTemplateFormatVersion: 2010-09-09
2-
Description: Template for Openshift Cluster UPI Network Elements (Route53 & LBs)
2+
Description: Template for OpenShift Cluster Network Elements (Route53 & LBs)
33

44
Parameters:
55
ClusterName:
66
AllowedPattern: ^([a-zA-Z][a-zA-Z0-9\-]{0,26})$
77
MaxLength: 27
88
MinLength: 1
9-
ConstraintDescription: Cluster name must be alphanumeric, start with a letter and a maximum of 27 characters
10-
Description: A short, representative cluster name to use for hostnames, etc.
9+
ConstraintDescription: Cluster name must be alphanumeric, start with a letter, and have a maximum of 27 characters.
10+
Description: A short, representative cluster name to use for host names and other identifying names.
1111
Type: String
1212
InfrastructureName:
1313
AllowedPattern: ^([a-zA-Z][a-zA-Z0-9\-]{0,26})$
1414
MaxLength: 27
1515
MinLength: 1
16-
ConstraintDescription: Infrastructure name must be alphanumeric, start with a letter and a maximum of 27 characters
17-
Description: A short, unique cluster ID used to tag cloud resources and identify items owned/used by the cluster.
16+
ConstraintDescription: Infrastructure name must be alphanumeric, start with a letter, and have a maximum of 27 characters.
17+
Description: A short, unique cluster ID used to tag cloud resources and identify items owned or used by the cluster.
1818
Type: String
1919
HostedZoneId:
20-
Description: The Route53 public zone ID to register the targets with (e.g Z21IXYZABCZ2A4)
20+
Description: The Route53 public zone ID to register the targets with, such as Z21IXYZABCZ2A4.
2121
Type: String
2222
HostedZoneName:
23-
Description: The Route53 zone to register the targets with (No trailing dot - e.g. mycorp.com)
23+
Description: The Route53 zone to register the targets with, such as example.com. Omit the trailing period.
2424
Type: String
2525
Default: "example.com"
2626
PublicSubnets:
27-
Description: The internet-facing subnets
27+
Description: The internet-facing subnets.
2828
Type: List<AWS::EC2::Subnet::Id>
2929
PrivateSubnets:
30-
Description: The internal subnets
30+
Description: The internal subnets.
3131
Type: List<AWS::EC2::Subnet::Id>
3232
VpcId:
33-
Description: The VPC created resources will belong.
33+
Description: The VPC-scoped resources will belong to this VPC.
3434
Type: AWS::EC2::VPC::Id
3535

3636
Metadata:
@@ -355,7 +355,7 @@ Resources:
355355

356356
Outputs:
357357
PrivateHostedZoneId:
358-
Description: Hosted zone ID for the private DNS - needed for private records
358+
Description: Hosted zone ID for the private DNS, which is required for private records.
359359
Value: !Ref IntDns
360360
ExternalApiLoadBalancerName:
361361
Description: Full name of the External API load balancer created.
@@ -364,17 +364,17 @@ Outputs:
364364
Description: Full name of the Internal API load balancer created.
365365
Value: !GetAtt IntApiElb.LoadBalancerFullName
366366
ApiServerDnsName:
367-
Description: Full hostname of the API server - Needed for ignition configs
367+
Description: Full hostname of the API server, which is required for the Ignition config files.
368368
Value: !Join [".", ["api-int", !Ref ClusterName, !Ref HostedZoneName]]
369369
RegisterNlbIpTargetsLambda:
370-
Description: Lambda ARN useful to help register/deregister IP targets for these load balancers
370+
Description: Lambda ARN useful to help register or deregister IP targets for these load balancers.
371371
Value: !GetAtt RegisterNlbIpTargets.Arn
372372
ExternalApiTargetGroupArn:
373-
Description: ARN of External API target group
373+
Description: ARN of External API target group.
374374
Value: !Ref ExternalApiTargetGroup
375375
InternalApiTargetGroupArn:
376-
Description: ARN of Internal API target group
376+
Description: ARN of Internal API target group.
377377
Value: !Ref InternalApiTargetGroup
378378
InternalServiceTargetGroupArn:
379-
Description: ARN of internal service target group
379+
Description: ARN of internal service target group.
380380
Value: !Ref InternalServiceTargetGroup

upi/aws/cloudformation/03_cluster_security.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
AWSTemplateFormatVersion: 2010-09-09
2-
Description: Template for Openshift Cluster UPI Security Elements (Security Groups & IAM)
2+
Description: Template for OpenShift Cluster Security Elements (Security Groups & IAM)
33

44
Parameters:
55
InfrastructureName:
66
AllowedPattern: ^([a-zA-Z][a-zA-Z0-9\-]{0,26})$
77
MaxLength: 27
88
MinLength: 1
9-
ConstraintDescription: Infrastructure name must be alphanumeric, start with a letter and a maximum of 27 characters
10-
Description: A short, unique cluster ID used to tag cloud resources and identify items owned/used by the cluster.
9+
ConstraintDescription: Infrastructure name must be alphanumeric, start with a letter, and have a maximum of 27 characters.
10+
Description: A short, unique cluster ID used to tag cloud resources and identify items owned or used by the cluster.
1111
Type: String
1212
VpcCidr:
1313
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-4]))$
14-
ConstraintDescription: CIDR block parameter must be in the form x.x.x.x/16-24
14+
ConstraintDescription: CIDR block parameter must be in the form x.x.x.x/16-24.
1515
Default: 10.0.0.0/16
16-
Description: CIDR block for VPC
16+
Description: CIDR block for VPC.
1717
Type: String
1818
VpcId:
19-
Description: The VPC created resources will belong.
19+
Description: The VPC-scoped resources will belong to this VPC.
2020
Type: AWS::EC2::VPC::Id
2121
PrivateSubnets:
22-
Description: The internal subnets
22+
Description: The internal subnets.
2323
Type: List<AWS::EC2::Subnet::Id>
2424

2525
Metadata:

upi/aws/cloudformation/04_cluster_bootstrap.yaml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,54 @@
11
AWSTemplateFormatVersion: 2010-09-09
2-
Description: Template for Openshift Cluster UPI Bootstrap (EC2 Instance, Security Groups and IAM)
2+
Description: Template for OpenShift Cluster Bootstrap (EC2 Instance, Security Groups and IAM)
33

44
Parameters:
55
InfrastructureName:
66
AllowedPattern: ^([a-zA-Z][a-zA-Z0-9\-]{0,26})$
77
MaxLength: 27
88
MinLength: 1
9-
ConstraintDescription: Infrastructure name must be alphanumeric, start with a letter and a maximum of 27 characters
10-
Description: A short, unique cluster ID used to tag cloud resources and identify items owned/used by the cluster.
9+
ConstraintDescription: Infrastructure name must be alphanumeric, start with a letter, and have a maximum of 27 characters.
10+
Description: A short, unique cluster ID used to tag cloud resources and identify items owned or used by the cluster.
1111
Type: String
1212
RhcosAmi:
13-
Description: Current RHEL CoreOS AMI to use for boostrap
13+
Description: Current Red Hat Enterprise Linux CoreOS AMI to use for boostrap.
1414
Type: AWS::EC2::Image::Id
1515
AllowedBootstrapSshCidr:
1616
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[0-9]|2[0-9]|3[0-2]))$
17-
ConstraintDescription: CIDR block parameter must be in the form x.x.x.x/0-32
17+
ConstraintDescription: CIDR block parameter must be in the form x.x.x.x/0-32.
1818
Default: 0.0.0.0/0
19-
Description: CIDR block to allow SSH access to the bootstrap node
19+
Description: CIDR block to allow SSH access to the bootstrap node.
2020
Type: String
2121
PublicSubnet:
22-
Description: The public subnet to launch the bootstrap node into
22+
Description: The public subnet to launch the bootstrap node into.
2323
Type: AWS::EC2::Subnet::Id
2424
MasterSecurityGroupId:
25-
Description: The master security group ID (for registering temporary rules)
25+
Description: The master security group ID for registering temporary rules.
2626
Type: AWS::EC2::SecurityGroup::Id
2727
VpcId:
28-
Description: The VPC created resources will belong.
28+
Description: The VPC-scoped resources will belong to this VPC.
2929
Type: AWS::EC2::VPC::Id
3030
BootstrapIgnitionLocation:
3131
Default: s3://my-s3-bucket/bootstrap.ign
32-
Description: Location to fetch bootstrap ignition from. (Recommend to use the autocreated cf-templates bucket.)
32+
Description: Ignition config file location.
3333
Type: String
3434
AutoRegisterELB:
3535
Default: "yes"
3636
AllowedValues:
3737
- "yes"
3838
- "no"
39-
Description: Do you want to invoke NLB registration (requires Lambda ARN parameter to be supplied)?
39+
Description: Do you want to invoke NLB registration, which requires a Lambda ARN parameter?
4040
Type: String
4141
RegisterNlbIpTargetsLambdaArn:
42-
Description: ARN for NLB IP target registration lambda
42+
Description: ARN for NLB IP target registration lambda.
4343
Type: String
4444
ExternalApiTargetGroupArn:
45-
Description: ARN for external API load balancer target group
45+
Description: ARN for external API load balancer target group.
4646
Type: String
4747
InternalApiTargetGroupArn:
48-
Description: ARN for internal API load balancer target group
48+
Description: ARN for internal API load balancer target group.
4949
Type: String
5050
InternalServiceTargetGroupArn:
51-
Description: ARN for internal service load balancer target group
51+
Description: ARN for internal service load balancer target group.
5252
Type: String
5353

5454
Metadata:
@@ -88,7 +88,7 @@ Metadata:
8888
PublicSubnet:
8989
default: "Public Subnet"
9090
RhcosAmi:
91-
default: "RHEL CoreOS AMI ID"
91+
default: "Red Hat Enterprise Linux CoreOS AMI ID"
9292
BootstrapIgnitionLocation:
9393
default: "Bootstrap Ignition Source"
9494
MasterSecurityGroupId:
@@ -199,13 +199,13 @@ Resources:
199199

200200
Outputs:
201201
BootstrapInstanceId:
202-
Description: Bootstrap Instance ID
202+
Description: Bootstrap Instance ID.
203203
Value: !Ref BootstrapInstance
204204

205205
BootstrapPublicIp:
206-
Description: The bootstrap node public IP address
206+
Description: The bootstrap node public IP address.
207207
Value: !GetAtt BootstrapInstance.PublicIp
208208

209209
BootstrapPrivateIp:
210-
Description: The bootstrap node private IP address
210+
Description: The bootstrap node private IP address.
211211
Value: !GetAtt BootstrapInstance.PrivateIp

upi/aws/cloudformation/05_cluster_master_nodes.yaml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
11
AWSTemplateFormatVersion: 2010-09-09
2-
Description: Template for Openshift Cluster UPI Node Launch (EC2 master instances)
2+
Description: Template for OpenShift Cluster Node Launch (EC2 master instances)
33

44
Parameters:
55
InfrastructureName:
66
AllowedPattern: ^([a-zA-Z][a-zA-Z0-9\-]{0,26})$
77
MaxLength: 27
88
MinLength: 1
9-
ConstraintDescription: Infrastructure name must be alphanumeric, start with a letter and a maximum of 27 characters
9+
ConstraintDescription: Infrastructure name must be alphanumeric, start with a letter, and have a maximum of 27 characters.
1010
Description: A short, unique cluster ID used to tag nodes for the kubelet cloud provider.
1111
Type: String
1212
RhcosAmi:
13-
Description: Current RHEL CoreOS AMI to use for boostrap
13+
Description: Current Red Hat Enterprise Linux CoreOS AMI to use for boostrap.
1414
Type: AWS::EC2::Image::Id
1515
AutoRegisterDNS:
1616
Default: "yes"
1717
AllowedValues:
1818
- "yes"
1919
- "no"
20-
Description: Do you want to invoke DNS etcd registration (requires Hosted Zone info provided)?
20+
Description: Do you want to invoke DNS etcd registration, which requires Hosted Zone information?
2121
Type: String
2222
PrivateHostedZoneId:
23-
Description: The Route53 private zone ID to register the etcd targets with (e.g Z21IXYZABCZ2A4)
23+
Description: The Route53 private zone ID to register the etcd targets with, such as Z21IXYZABCZ2A4.
2424
Type: String
2525
PrivateHostedZoneName:
26-
Description: The Route53 zone to register the targets with (No trailing dot - e.g. cluster.mycorp.com)
26+
Description: The Route53 zone to register the targets with, such as cluster.example.com. Omit the trailing period.
2727
Type: String
2828
Master0Subnet:
29-
Description: The subnets (recommend private) to launch the master nodes into
29+
Description: The subnets, recommend private, to launch the master nodes into.
3030
Type: AWS::EC2::Subnet::Id
3131
Master1Subnet:
32-
Description: The subnets (recommend private) to launch the master nodes into
32+
Description: The subnets, recommend private, to launch the master nodes into.
3333
Type: AWS::EC2::Subnet::Id
3434
Master2Subnet:
35-
Description: The subnets (recommend private) to launch the master nodes into
35+
Description: The subnets, recommend private, to launch the master nodes into.
3636
Type: AWS::EC2::Subnet::Id
3737
MasterSecurityGroupId:
3838
Description: The master security group ID to associate with master nodes.
3939
Type: AWS::EC2::SecurityGroup::Id
4040
IgnitionLocation:
4141
Default: https://api-int.$CLUSTER_NAME.$DOMAIN:22623/config/master
42-
Description: Location to fetch bootstrap ignition from. (Recommend to use the autocreated ignition config location.)
42+
Description: Ignition config file location.
4343
Type: String
4444
CertificateAuthorities:
4545
Default: data:text/plain;charset=utf-8;base64,ABC...xYz==
@@ -71,19 +71,19 @@ Parameters:
7171
AllowedValues:
7272
- "yes"
7373
- "no"
74-
Description: Do you want to invoke NLB registration (requires Lambda ARN parameter to be supplied)?
74+
Description: Do you want to invoke NLB registration, which requires a Lambda ARN parameter?
7575
Type: String
7676
RegisterNlbIpTargetsLambdaArn:
77-
Description: ARN for NLB IP target registration lambda (from cluster_infra_upi.yaml; otherwise select "no" for AutoRegisterELB)
77+
Description: ARN for NLB IP target registration lambda. Supply the value from the cluster infrastructure or select "no" for AutoRegisterELB.
7878
Type: String
7979
ExternalApiTargetGroupArn:
80-
Description: ARN for external API load balancer target group (from cluster_infra_upi.yaml; otherwise select "no" for AutoRegisterELB)
80+
Description: ARN for external API load balancer target group. Supply the value from the cluster infrastructure or select "no" for AutoRegisterELB.
8181
Type: String
8282
InternalApiTargetGroupArn:
83-
Description: ARN for internal API load balancer target group (from cluster_infra_upi.yaml; otherwise select "no" for AutoRegisterELB)
83+
Description: ARN for internal API load balancer target group. Supply the value from the cluster infrastructure or select "no" for AutoRegisterELB.
8484
Type: String
8585
InternalServiceTargetGroupArn:
86-
Description: ARN for internal service load balancer target group (from cluster_infra_upi.yaml; otherwise select "no" for AutoRegisterELB)
86+
Description: ARN for internal service load balancer target group. Supply the value from the cluster infrastructure or select "no" for AutoRegisterELB.
8787
Type: String
8888

8989
Metadata:
@@ -134,7 +134,7 @@ Metadata:
134134
MasterInstanceProfileName:
135135
default: "Master Instance Profile Name"
136136
RhcosAmi:
137-
default: "RHEL CoreOS AMI ID"
137+
default: "Red Hat Enterprise Linux CoreOS AMI ID"
138138
BootstrapIgnitionLocation:
139139
default: "Master Ignition Source"
140140
CertificateAuthorities:
@@ -353,7 +353,7 @@ Resources:
353353

354354
Outputs:
355355
PrivateIPs:
356-
Description: The control-plane node private IP addresses
356+
Description: The control-plane node private IP addresses.
357357
Value:
358358
!Join [
359359
",",

0 commit comments

Comments
 (0)