You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting this error now
Error: Get "https://xxxxxxxxxxx.gr7.eu-central-1.eks.amazonaws.com/api/v1/namespaces/kube-system/configmaps/aws-auth": getting credentials: exec: executable aws failed with exit code 255
with module.xxxxx.module.xxxxxxxx.kubernetes_config_map_v1_data.aws_auth[0],
│ on .terraform/modules/xxxxxxxxxx/main.tf line 550, in resource "kubernetes_config_map_v1_data" "aws_auth":
│ 550: resource "kubernetes_config_map_v1_data" "aws_auth" {
also this is my service account apiVersion: v1 kind: ServiceAccount metadata: annotations: eks.amazonaws.com/role-arn: arn:aws:iam::xxxxxxxxx:role/dev-atlantis
This is the configmap "aw-auth"
`apiVersion: v1
data:
mapAccounts: |
- "xxxxxxx"
mapRoles: |
- "groups":
- "system:masters"
"rolearn": "arn:aws:iam::xxxxxxxxx:role/dev-atlantis"
"username": "atlantis"`
can someone help
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am getting this error now
Error: Get "https://xxxxxxxxxxx.gr7.eu-central-1.eks.amazonaws.com/api/v1/namespaces/kube-system/configmaps/aws-auth": getting credentials: exec: executable aws failed with exit code 255
with module.xxxxx.module.xxxxxxxx.kubernetes_config_map_v1_data.aws_auth[0],
│ on .terraform/modules/xxxxxxxxxx/main.tf line 550, in resource "kubernetes_config_map_v1_data" "aws_auth":
│ 550: resource "kubernetes_config_map_v1_data" "aws_auth" {
this was actually the first error:
Error: Get "https://xxxxxxxxxx.gr7.eu-central-1.eks.amazonaws.com/api/v1/namespaces/kube-system/configmaps/aws-auth": getting credentials: exec: executable aws not found
I have created a custom docker image of atlantis after looking to what @nitrocode post and this is my final Dockerfile
`FROM ghcr.io/runatlantis/atlantis:latest
ENV KUBECTL_VERSION="1.17.12/2020-11-02"
RUN apk update && apk upgrade
RUN apk add --no-cache
curl
g++
git
gnupg
jq
libffi-dev
openssh-client
python3
python3-dev
py3-pip
unzip
wget
zip
sshpass
RUN pip install awscli==1.28.0
RUN curl https://amazon-eks.s3.us-west-2.amazonaws.com/${KUBECTL_VERSION}/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl && chmod +x /usr/local/bin/kubectl`
also this is my service account
apiVersion: v1 kind: ServiceAccount metadata: annotations: eks.amazonaws.com/role-arn: arn:aws:iam::xxxxxxxxx:role/dev-atlantis
data:
mapAccounts: |
- "xxxxxxx"
mapRoles: |
- "groups":
- "system:masters"
"rolearn": "arn:aws:iam::xxxxxxxxx:role/dev-atlantis"
"username": "atlantis"`
can someone help
Beta Was this translation helpful? Give feedback.
All reactions