eks-distro icon indicating copy to clipboard operation
eks-distro copied to clipboard

Kops is unable to read kube-apiserver.docker_tag with error 403 Forbidden

Open GeorgeJose7 opened this issue 11 months ago • 3 comments

I am trying to inst EKD with the kops installer provided in the eks Distro git repository. I am receiving the following error

Error: error building complete spec: error reading tag file "https://distro.eks.amazonaws.com/kubernetes-1-29/releases/9/artifacts/kubernetes/v1.29.1/bin/linux/amd64/kube-apiserver.docker_tag": unexpected response code "403 Forbidden" for "https://distro.eks.amazonaws.com/kubernetes-1-29/releases/9/artifacts/kubernetes/v1.29.1/bin/linux/amd64/kube-apiserver.docker_tag": <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>T0BGSATJPBWMZMD9</RequestId><HostId>8J2lhcoPyzkdTcotGkJpkl2hlNUHhRaqyDJMm8rZ/vNix/Z6/Lfoh+WkFYgaqnMPASA7UtWSbQ0=</HostId></Error>

What is a possible resolution for this error?

AWS CLI version

aws-cli/2.11.13 Python/3.11.3 Darwin/23.4.0 exe/x86_64 prompt/off

GeorgeJose7 avatar Mar 22 '24 22:03 GeorgeJose7

Can you provide additional steps that you are using to reproduce this error?

rcrozean avatar Mar 25 '24 17:03 rcrozean

Hello @GeorgeJose7 @rcrozean I had the same error. This other issue helps me to understand : https://github.com/aws/eks-distro/issues/1245

Indeed we need to define a new env variable as "export RELEASE_ENVIRONMENT=production". You can scroll the repo there to see which version you can use https://github.com/aws/eks-distro/blob/main/release/1-29/production/RELEASE

I will try to do a PR into the doc for kops usage. Thanks. It seems to be great now Regards

zepouet avatar Apr 01 '24 18:04 zepouet

Thank you for your help @zepouet!

rcrozean avatar Apr 03 '24 17:04 rcrozean

Did it resolved ?

sahil-2810 avatar Jun 10 '24 08:06 sahil-2810