From 3d9d372f54d285af97b109ac6be24824811a8b33 Mon Sep 17 00:00:00 2001 From: Andrew Gargan Date: Mon, 20 Jun 2022 11:04:00 -0700 Subject: [PATCH] Fix blog assets, add missing params --- .../templates/eks-cluster-prework.template.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 aaf15d0..58571d2 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 + AvailabilityZones: !Join [ ',', !Ref 'AvailabilityZones' ] NodeInstanceType: t3.large NumberOfNodes: 1 MaxNumberOfNodes: 1