Closed eravindar12 closed 3 weeks ago
What make
command are you running?
@cartermckinnon JFYR, I am running the make command as shown below.
make k8s=1.30 os_distro=al2023 aws_region="us-east-1" source_ami_id="ami-xxxx" source_ami_owners=xxxx source_ami_filter_name="CIS Amazon Linux 2023 Benchmark - Level 1 - v05 -prod-xxxxx" kubernetes_build_date="2022-06-06" kubernetes_version="1.30" subnet_id="subnet-xxxx" vpc_id="vpc-xxxx"
This is the problem:
kubernetes_build_date="2022-06-06"
There are no 1.30 binaries from 2022 😄 you can find the latest ones for 1.30 using this script: https://github.com/awslabs/amazon-eks-ami/blob/main/hack/latest-binaries.sh
@cartermckinnon Thank you for correcting the build date; now it's able to download. However, I'm encountering a "permission denied" error.
Do you have any suggestions on why I'm getting this permission denied?
amazon-ebs: /tmp/script_5266.sh: line 225: /tmp/worker/shared/bin/imds: Permission denied
2024-06-06T23:13:27Z: amazon-ebs: Downloading binaries from: s3://amazon-eks
2024-06-06T23:13:27Z: amazon-ebs: AWS cli present - using it to copy binaries from s3.
2024-06-06T23:13:30Z: amazon-ebs: download: s3://amazon-eks/1.30.0/2024-05-12/bin/linux/amd64/kubelet to ./kubelet
2024-06-06T23:13:31Z: amazon-ebs: download: s3://amazon-eks/1.30.0/2024-05-12/bin/linux/amd64/kubelet.sha256 to ./kubelet.sha256
2024-06-06T23:13:31Z: amazon-ebs: kubelet: OK
2024-06-06T23:13:32Z: amazon-ebs: AWS cli present - using it to copy ecr-credential-provider from s3.
2024-06-06T23:13:33Z: amazon-ebs: download: s3://amazon-eks/1.30.0/2024-05-12/bin/linux/amd64/ecr-credential-provider to ./ecr-credential-provider
2024-06-06T23:13:34Z: amazon-ebs: amazon-ssm-agent.x86_64 3.3.380.0-1.amzn2023 @System
2024-06-06T23:13:34Z: amazon-ebs: amazon-ssm-agent already present - skipping install
2024-06-06T23:13:34Z: amazon-ebs: /tmp/script_5266.sh: line 225: /tmp/worker/shared/bin/imds: Permission denied
2024-06-06T23:13:34Z: ==> amazon-ebs: Provisioning step had errors: Running the cleanup provisioner, if present...
2024-06-06T23:13:34Z: ==> amazon-ebs: Terminating the source AWS instance...
2024-06-06T23:15:05Z: ==> amazon-ebs: Cleaning up any extra volumes...
2024-06-06T23:15:05Z: ==> amazon-ebs: No volumes to clean up, skipping
2024-06-06T23:15:05Z: ==> amazon-ebs: Deleting temporary security group...
2024-06-06T23:15:05Z: ==> amazon-ebs: Deleting temporary keypair...
2024-06-06T23:15:06Z: Build 'amazon-ebs' errored after 2 minutes 43 seconds: Script exited with non-zero exit status: 126. Allowed exit codes are: [0]
It's because you're using a CIS base image, same problem as here: https://github.com/awslabs/amazon-eks-ami/issues/1838#issuecomment-2153515642
What happened:
I am attempting to use the AL2023 base AMI for EKS optimized with the AMI Release v20240531. However, I am encountering a "fatal error: An error occurred (404) when calling the HeadObject operation: Key "1.30/2022-06-06/bin/linux/amd64/kubelet" does not exist" This appears to be a bug.
Do you have any suggestions for a workaround to fix this issue?
Error details:
templates/install-worker.sh
template.json
Environment: EKS