Skip to content

[Bug] creating a cluster using the local zone example fails #8174

@antevens

Description

@antevens

What were you trying to accomplish?

Create EKS cluster with localZones defined

ant@antimatter:~/tmp/test.eks$ cat 33-local-zones.yaml 
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig

metadata:
  name: cluster-33
  region: us-west-2

localZones: ["us-west-2-lax-1a", "us-west-2-lax-1b"]

nodeGroups:
  - name: local-ng
    localZones: ["us-west-2-lax-1a", "us-west-2-lax-1b"]
ant@antimatter:~/tmp/test.eks$ eksctl create cluster -f 33-local-zones.yaml
2025-01-30 10:57:44 [ℹ]  eksctl version 0.202.0
2025-01-30 10:57:44 [ℹ]  using region us-west-2
2025-01-30 10:57:44 [ℹ]  setting availability zones to [us-west-2b us-west-2c us-west-2d]
Error: error describing availability zones: operation error EC2: DescribeAvailabilityZones, https response error StatusCode: 400, RequestID: f5db1c3d-1a5e-4eaa-bbac-573f42746f9e, api error InvalidParameterValue: Invalid availability zone: [us-west-2-lax-1a]
ant@antimatter:~/tmp/test.eks$ 

What happened?

Some part of the creation process is trying to use/validate localZones instead of using availabilityZones

How to reproduce it?

Create a cluster using the 33-local-zones.yaml example file from https://github.com/eksctl-io/eksctl/blob/main/examples/33-local-zones.yaml

Versions

ant@antimatter:~/tmp/test.eks$ eksctl info
eksctl version: 0.202.0
kubectl version: v1.31.5
OS: linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions