It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bitbucket Pipeline to Amazon Elastic Beanstalk

Thomas Gallagher I'm New Here Feb 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
Samuel Tannous Atlassian Team Feb 24, 2019

Hi @Thomas Gallagher 

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

1,865 views 1 19
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you