Skip to content

Instantly share code, notes, and snippets.

@januszm
Last active October 17, 2022 20:16
Show Gist options
  • Star 15 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save januszm/f96368df232b8e5505d97e5dda574e38 to your computer and use it in GitHub Desktop.
Save januszm/f96368df232b8e5505d97e5dda574e38 to your computer and use it in GitHub Desktop.
Change Ruby minor version in AWS Elastic Beanstalk
# Currently (2017/2018) it's not possible to change the Ruby 'minor' version (eg. 2.3 => 2.4) using the web console
# However, it's possible using the 'awscli' tool.
brew install awscli # pip install awscli
aws elasticbeanstalk update-environment \
--solution-stack-name "64bit Amazon Linux 2017.09 v2.6.1 running Ruby 2.4 (Puma)" \
--environment-name "myappenv1" --region "us-east-2" \
--version-label "app-1234-210000_120123"
# For Amazon Linux 2
aws elasticbeanstalk update-environment \
--solution-stack-name "64bit Amazon Linux 2 v3.2.3 running Ruby 2.7" \
--environment-name "myappenv1" --region "us-east-2" \
--version-label "app-1234-210000_120123"
# NOTE: pass --version-label pointing to version that "should" work with the new platform
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment