Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Deploy to AWS kubernetes fails at kubectl apply command

I am trying to make a deployment to the eks aws, this is my pipeline:

step:        
name"Deploy to TEST"        
deploymenttest        
script:          
pipeatlassian/aws-eks-kubectl run:1.3.1            
variables:              
AWS_ACCESS_KEY_ID${AWS_ACCESS_KEY_ID}              
AWS_SECRET_ACCESS_KEY${AWS_SECRET_ACCESS_KEY}              
AWS_DEFAULT_REGION${AWS_DEFAULT_REGION}              
CLUSTER_NAME"cluster-name"              
KUBECTL_COMMAND"apply"              
RESOURCE_PATH: "file.yaml"

 but I get this:

error: you must be logged in to the server (the server has asked for the client to provide credentials)

 

Please can you help me, I don't know what I'm doing wrong!

2 answers

Hi,

I solved this issue after changed 

AWS_ACCESS_KEY_ID${AWS_ACCESS_KEY_ID}              
AWS_SECRET_ACCESS_KEY${AWS_SECRET_ACCESS_KEY}   

with aws access key and aws secret access key of the user who was created the EKS cluster 

I solved the problem by updating the version of kubernetes, I was using version 1.16 and now with version 1.18 everything works fine.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

329 views 3 14
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you