This repository was archived by the owner on Dec 6, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-16
lines changed
blog-assets/eks-cluster-prework/templates Expand file tree Collapse file tree 2 files changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ Parameters:
66 Type : String
77 JobName :
88 Type : String
9- Default : ' job- example'
9+ Default : ' example-job '
1010 AvailabilityZones :
1111 Description : List of Availability Zones to use for the subnets in the VPC. Three
1212 Availability Zones are used for this deployment.
@@ -38,12 +38,6 @@ Resources:
3838 NodeInstanceType : t3.large
3939 NumberOfNodes : 1
4040 MaxNumberOfNodes : 1
41- GetOIDCProvider :
42- Type : Custom::GetOIDCProvider
43- Properties :
44- ServiceToken : !Sub "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:eks-quickstart-ResourceReader"
45- AwsCliCommand : !Sub "eks describe-cluster --name ${EKSStack.Outputs.EKSClusterName} --query 'cluster.identity.oidc.{issuer:issuer}'"
46- IdField : ' issuer'
4741 PreworkStack :
4842 Type : AWS::CloudFormation::Stack
4943 Properties :
@@ -54,11 +48,6 @@ Resources:
5448 PreworkScriptObject : !Ref PreworkScriptObject
5549 JobName : !Ref JobName
5650 KubernetesNameSpace : " prework-example"
57- OIDCProvider : !Sub
58- - " ${OIDCProvider1}/${OIDCProvider2}/${OIDCProvider3}"
59- - OIDCProvider1 : !Select [ 2, !Split [ "/", !Ref GetOIDCProvider ] ]
60- OIDCProvider2 : !Select [ 3, !Split [ "/", !Ref GetOIDCProvider ] ]
61- OIDCProvider3 : !Select [ 4, !Split [ "/", !Ref GetOIDCProvider ] ]
6251Outputs :
6352 EKSClusterName :
6453 Value : !GetAtt EKSStack.Outputs.EKSClusterName
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ Parameters:
1111 Default : " quickstart-examples/samples/eks-cluster-prework/scripts/pw-script.sh"
1212 JobName :
1313 Type : String
14- Default : job- example
14+ Default : example-job
1515 AllowedPattern : ' [a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*'
1616 ConstraintDescription : " a lowercase RFC 1123 subdomain must consist of lower case
1717 alphanumeric characters, '-' or '.', and must start and end with an alphanumeric
@@ -45,6 +45,7 @@ Resources:
4545 }
4646 - NameSpace : !Ref KubernetesNameSpace
4747 ResourceName : !Sub "pw-service-account-${JobName}"
48+ OIDCProvider : !Join [ '', !Split [ 'https://', !Ref 'GetOIDCProvider' ] ]
4849 Path : " /"
4950 Policies :
5051 - PolicyName : root
@@ -166,8 +167,6 @@ Resources:
166167 args:
167168 - >
168169 sleep 15;
169- yum update -y;
170- yum install -y awscli;
171170 export AWS_REGION=${AWS::Region};
172171 export NS=${NameSpace};
173172 aws sts get-caller-identity;
@@ -186,4 +185,4 @@ Resources:
186185 backoffLimit: 4
187186 - ResourceName : !Sub "pw-job-${JobName}"
188187 NameSpace : !Ref "KubernetesNameSpace"
189- S3ScriptURL : !Sub "s3://${PreworkScriptBucket}/${PreworkScriptObject}"
188+ S3ScriptURL : !Sub "s3://${PreworkScriptBucket}/${PreworkScriptObject}"
You can’t perform that action at this time.
0 commit comments