From 84b5b9c42ebaf8479599f34094a588b572e7849a Mon Sep 17 00:00:00 2001 From: Andrew Gargan Date: Mon, 20 Jun 2022 10:33:34 -0700 Subject: [PATCH] Add missing input parameters --- .../templates/eks-cluster-prework.template.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/blog-assets/eks-cluster-prework/templates/eks-cluster-prework.template.yaml b/blog-assets/eks-cluster-prework/templates/eks-cluster-prework.template.yaml index db23bd6..550c28b 100644 --- a/blog-assets/eks-cluster-prework/templates/eks-cluster-prework.template.yaml +++ b/blog-assets/eks-cluster-prework/templates/eks-cluster-prework.template.yaml @@ -7,6 +7,15 @@ Parameters: JobName: Type: String Default: 'job-example' + AvailabilityZones: + Description: List of Availability Zones to use for the subnets in the VPC. Three + Availability Zones are used for this deployment. + Type: List AvailabilityZones: + NumberOfAZs: + Type: String + AllowedValues: ["2", "3"] + Default: "2" + Description: Number of Availability Zones to use in the VPC. This must match the value entered for the AvailabilityZones parameter. PreworkScriptBucket: Type: String Default: 'aws-quickstart' @@ -24,7 +33,8 @@ Resources: QSS3KeyPrefix: quickstart-amazon-eks/ # Cluster properties ProvisionBastionHost: Enabled - AccessCIDR: !Ref AccessCIDR + RemoteAccessCIDR: !Ref AccessCIDR + NodeInstanceType: t3.large NumberOfNodes: 1 MaxNumberOfNodes: 1 @@ -32,7 +42,7 @@ Resources: Type: Custom::GetOIDCProvider Properties: ServiceToken: !Sub "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:eks-quickstart-ResourceReader" - AwsCliCommand: !Sub "eks describe-cluster --name ${ClusterName} --query 'cluster.identity.oidc.{issuer:issuer}'" + AwsCliCommand: !Sub "eks describe-cluster --name ${EKSStack.Outputs.EKSClusterName} --query 'cluster.identity.oidc.{issuer:issuer}'" IdField: 'issuer' PreworkStack: Type: AWS::CloudFormation::Stack