AWS eb not on the path

Hey, Circle 2.0

Want to deploy to beanstalk! Can’t find eb in the path, that’s the script:

  - run: sudo apt-get install awscli


  - run: sudo apt-get install python-pip python-dev build-essential

  - run: pip install awsebcli --upgrade --user

  - run: export PATH=~/.local/bin:$PATH

  - deploy:
      name: Deploy to EB if tests pass and branch is Master
      command: eb deploy --profile default

eb command fails

i have the same issue with you.Have you already find the solution?

Stumbled across this post when I was also trying to get EB deployments working with CircleCi 2.0 so thought I’d write up the steps I took for getting it working for me:

Yeah, just add it to your path with a step like this:

  - run:
      name: Add local binaries to path
      command: echo 'export PATH=~/.local/bin/:$PATH' >> $BASH_ENV

You could even combine it all into a single step

  - run:
      name: Install pip and tools
      command: |
        curl -O
        python --user
        python -m pip install awsebcli --upgrade --user
        echo 'export PATH=~/.local/bin/:$PATH' >> $BASH_ENV

Which platform are you using? I didn’t have to add it to the PATH. Maybe check out this repo: