Awsebcli "You appear to have no credentials"


#1

I have my env vars set up (I can see them via - run : echo ${AWS_ACCESS_KEY_ID}

But get this error:

sudo eb deploy myApp-env
ERROR: CredentialsError - Operation Denied. You appear to have no credentials
Exited with code 4

Here is my config:
.circleci/config.yml

version: 2
jobs:
  deploy:
    working_directory: /go/src
    docker:
      - image: circleci/golang
    steps:
      - checkout
      - run: sudo apt-get -y -qq update --assume-yes
      - run: sudo apt-get install python-pip python-dev build-essential --assume-yes
      - run: sudo pip install awsebcli --upgrade
      - run : echo ${AWS_ACCESS_KEY_ID}
      - run : sudo eb deploy myApp-env
workflows:
  version: 2
  build_and_test:
    jobs:
      - deploy

.elasticbeanstalk/config.yml

branch-defaults:
  develop:
    environment: myApp-env
  master:
    environment: myApp-env
global:
  application_name: myApp
  default_platform: Docker 18.03.1-ce
  default_region: eu-west-2
  sc: git

Any ideas what could be wrong? (I’m guessing a dumb typo!)


#2

It was a dumb typo just shouldn’t have used sudo for eb deploy.


#3

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.