Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shyam-ks opened this issue Jun 27, 2024 · 5 comments
Labels

Comments

@shyam-ks
Copy link

shyam-ks commented Jun 27, 2024

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
Copy link
Collaborator

cPu1 commented Jul 1, 2024

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
Copy link
Author

shyam-ks commented Jul 2, 2024

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
Copy link
Author

shyam-ks commented Jul 10, 2024

any update on timeline?

@renovate-release-notes-retriever

Please add support for this. We're also in need of it.

@dhaval-vithalani
Copy link

Any update on the timeline ? We're also stuck with this. And until this isn't fixed, upgrade to AL2023 is blocked for us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants