pipe version: aws-eks-kubectl-run:1.1.1
My Bitbucket Pipeline
- pipe: atlassian/aws-eks-kubectl-run:1.1.1
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: $REGION
CLUSTER_NAME: $CLUSTER_NAME
KUBECTL_COMMAND: 'set image deployment/app-frontend app-frontend=$IMAGE_NAME'
Error Message:
<span>Added new context arn:aws:eks:[region]:[aws_id]:cluster/[cluster_name] to /root/.kube/config</span><span>✔ <br>Successfully updated the kube config.<br></span><span>error: You must be logged in to the server (Unauthorized)</span><span>✖ <br>kubectl set image deployment/app-frontend <a href="http://apple-sg-df-stag-frontend%3D595484043913.dkr.ecr.ap-southeast-1.amazonaws.com/apple-sg-fe-stag:2fa2b8ee6271e17efc19fcfdc125310d3a528f67" target="_blank" rel="noopener nofollow noreferrer">app-frontend=IMAGE_NAME</a> failed.</span>
can anyone please guide me on how to authenticate using this pipe? as the documentation doesn't say much aside from filling in those required variables.
Thanks