Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bitbucket Pipeline to Amazon Elastic Beanstalk

tomgallagher101 February 20, 2019

I'm trying to run a pipeline script to load a Rails App into Elastic Beanstalk.

My Bitbucket Pipelines yml looks like this

pipelines:
default:
- step:
caches:
- bundler
- pip
script:
- apt-get update && apt-get install -y python-dev
- curl -O https://bootstrap.pypa.io/get-pip.py
- python get-pip.py
- pip install awsebcli --upgrade
- pip install awscli --upgrade
- bundle install --path vendor/bundle
- aws --version
- eb init Pathfinder -r eu-west-2 -p arn:aws:elasticbeanstalk:eu-west-2::platform/Puma with Ruby 2.6 running on 64bit Amazon Linux/2.9.0
- eb deploy Pathfinder-env

definitions:
caches:
bundler: vendor/bundle
pip: ~/.cache/pip

And the eb init line is causing this error. Anyone have any experience of this?

eb: error: unrecognized arguments: with Ruby 2.6 running on 64bit Amazon Linux/2.9.0

1 answer

0 votes
StannousBaratheon
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 24, 2019

Hi @tomgallagher101 

The eb cli doesn't recognize the argument "with Ruby 2.6 running on 64bit Amazon Linux/2.9.0". This is because it recognizes the space after "Puma" as the end of the -p argument. I believe you just have to put the value in quotes as per the examples in the eb documentation: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb3-init.html

e.g. 

-p "arn:aws:elasticbeanstalk:eu-west-2::platform/Puma with Ruby 2.6 running on 64bit Amazon Linux/2.9.0"

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events