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
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:
circleci-2.0-eb-deployment.md
Deploying to Elastic Beanstalk via CircleCi 2.0
------
I got to here after spending hours trying to deploy to an Elastic Beanstalk instance via CircleCi 2.0 so I thought I'd write up what worked for me to hopefully help others. Shout out to RobertoSchneiders who's [steps for getting it to work with CircleCi 1.0](https://gist.github.com/RobertoSchneiders/9e0e73e836a80d53a21e) were my starting point.
For the record, I'm not the most server-savvy of developers so there may be a better way of doing this.
#### Setup a user on AWS IAM to use for deployments
- [Add user here](https://console.aws.amazon.com/iam/home#/users$new?step=details)
This file has been truncated. show original
a613
March 2, 2018, 8:01pm
4
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
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