Been spending quite a bit of time trying to figure out why my Circle CI instance can’t find eb. My config installs awsebcli using pip but there are no instructions on what path to add. Some people say run export PATH=~/.local/bin:$PATH, but when I ssh into the machine there is no directory ~/.local.
Please help. Here’s my config.yml. Help is much appreciated as I’ve spent hours trying to debug this 
deploy_staging:
docker:
- image: circleci/node:8.7.0
steps:
- checkout
- setup_remote_docker
- run: |
set -x
docker login -u $DOCKER_USER -p $DOCKER_PASS
- run:
name: Install Easy Install
command: sudo apt-get install python-setuptools python-dev build-essential
- run:
name: Install PIP
command: sudo easy_install pip
- run:
name: Install AWS dependencies
command: |
sudo pip install awsebcli --upgrade --user
sudo apt-get install awscli
- run:
working_directory: s2
name: Install Lerna and Typescript
command: sudo npm install -g lerna && sudo npm install -g typescript
- run:
working_directory: ./
name: NPM Run Setup in Root
command: npm run setup
no_output_timeout: 1200
- run:
working_directory: ./
name: Add security group to AWS
command: ./scripts/aws-vpc.sh add
- run:
working_directory: ./
name: Git config
command: |
git config --global user.name "Circle CI Instance"
git config --global user.email "circleci@circleci"
- run:
working_directory: s2
name: Deploy to Staging
command: ./scripts/deploy.sh staging autoyes
no_output_timeout: 1200
- run:
working_directory: ./
name: Remove security group from AWS
command: ./scripts/aws-vpc.sh remove