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