I'm trying to run a pipeline script to load a Rails App into Elastic Beanstalk.
My Bitbucket Pipelines yml looks like this
- 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
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
-p "arn:aws:elasticbeanstalk:eu-west-2::platform/Puma with Ruby 2.6 running on 64bit Amazon Linux/2.9.0"
We’ve been building a plugin to integrate Bitbucket Server and Jenkins CI, and I’m excited to announce that our alpha is ready to download and install. It lets you seamlessly configure a Jenkins job ...
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