eksctl-io / eksctl

The official CLI for Amazon EKS
https://eksctl.io
Other
4.84k stars 1.4k forks source link

[Bug] could not create cluster provider from options: managedNodeGroups[0].overrideBootstrapCommand - 0.183.0 #7852

Open shyam-ks opened 1 month ago

shyam-ks commented 1 month ago

Getting the following error - Error: could not create cluster provider from options: managedNodeGroups[0].overrideBootstrapCommand is not supported when using a custom AMI based on AmazonLinux2023 (managedNodeGroups[0].ami)

managedNodeGroups:
  - name: "ng-1-workers-27-Jun-2024-T13-30-09"
    subnets:
      - ext-sub-1
    instanceType: "m5.2xlarge"
    desiredCapacity: 2
    labels: { role: workers }
    tags:
      env: dev
    iam:
      attachPolicyARNs:
        - arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy
        - arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy
        - arn:aws:iam::aws:policy/ElasticLoadBalancingFullAccess
        - arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly

      withAddonPolicies:
        ebs: true
        cloudWatch: true
    privateNetworking: true
    volumeSize: 200
    volumeEncrypted: true
    securityGroups:
      attachIDs: ["sg-xxxxxxxxxxxxxx"]
    ami: ami-xxxxxxxxxxxxx
    amiFamily: AmazonLinux2023 
    overrideBootstrapCommand: |
      #!/bin/bash
      /etc/eks/bootstrap.sh dev

how can I use custom AMI AmazonLinux2023 ?

cPu1 commented 3 weeks ago

overrideBootstrapCommand is not supported for Amazon Linux 2023 AMIs yet. We're working on it. If you need to pass overrideBootstrapCommand, you will need to use AmazonLinux2 for now.

shyam-ks commented 3 weeks ago

overrideBootstrapCommand is not supported for Amazon Linux 2023 AMIs yet. We're working on it. If you need to pass overrideBootstrapCommand, you will need to use AmazonLinux2 for now.

Is there any timeline on when it will be available? So there is no option to use custom Amazon Linux 2023 AMI with eksctl ? Do you know if there are any alternatives available for overrideBootstrapCommand for using custom Amazon Linux 2023 AMI?

shyam-ks commented 2 weeks ago

any update on timeline?