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
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"
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.