# AWS eb not on the path

**URL:** <https://discuss.circleci.com/t/aws-eb-not-on-the-path/17301>\
**Category:** Build Environment\
**Tags:** elasticbeanstalk, aws\
**Created:** [October 11, 2017, 2:28pm UTC](https://discuss.circleci.com/t/aws-eb-not-on-the-path/17301 "2017-10-11T14:28:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JordanValdma](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@JordanValdma](https://discuss.circleci.com/u/JordanValdma)\
**Post date:** [October 11, 2017, 2:28pm UTC](https://discuss.circleci.com/t/aws-eb-not-on-the-path/17301/1 "2017-10-11T14:28:53Z")

</div>

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

```

OR

```
  - 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

---

<div class="post-metadata">

**Author:** ![ChenPaulYu](https://avatars.discourse-cdn.com/v4/letter/c/a9adbd/32.png) [@ChenPaulYu](https://discuss.circleci.com/u/ChenPaulYu)\
**Post date:** [November 16, 2017, 10:02am UTC](https://discuss.circleci.com/t/aws-eb-not-on-the-path/17301/2 "2017-11-16T10:02:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ryansimms](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/ryansimms/32/22010_2.png) [@ryansimms](https://discuss.circleci.com/u/ryansimms)\
**Post date:** [January 8, 2018, 11:45am UTC](https://discuss.circleci.com/t/aws-eb-not-on-the-path/17301/3 "2018-01-08T11:45:37Z")

</div>

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:

> <https://gist.github.com/ryansimms/808214137d219be649e010a07af44bad>

---

<div class="post-metadata">

**Author:** ![a613](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/a613/32/11153_2.png) [@a613](https://discuss.circleci.com/u/a613)\
**Post date:** [March 2, 2018, 8:01pm UTC](https://discuss.circleci.com/t/aws-eb-not-on-the-path/17301/4 "2018-03-02T20:01:53Z")

</div>

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 https://bootstrap.pypa.io/get-pip.py
        python get-pip.py --user
        python -m pip install awsebcli --upgrade --user
        echo 'export PATH=~/.local/bin/:$PATH' >> $BASH_ENV
```

---

<div class="post-metadata">

**Author:** ![kgoedecke](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/kgoedecke/32/13037_2.png) [@kgoedecke](https://discuss.circleci.com/u/kgoedecke)\
**Post date:** [March 12, 2018, 1:30pm UTC](https://discuss.circleci.com/t/aws-eb-not-on-the-path/17301/5 "2018-03-12T13:30:39Z")

</div>

Which platform are you using? I didn’t have to add it to the PATH. Maybe check out this repo: [https://github.com/kgoedecke/circleci-beanstalk-example](https://github.com/kgoedecke/circleci-beanstalk-example)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:39am UTC](https://discuss.circleci.com/t/aws-eb-not-on-the-path/17301/6 "2018-06-18T11:39:59Z")

</div>

Closed on June 18, 2018, 11:39am UTC


