Last active
January 6, 2025 15:46
-
-
Save januszm/f96368df232b8e5505d97e5dda574e38 to your computer and use it in GitHub Desktop.
Change Ruby minor version in AWS Elastic Beanstalk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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_PROFILE=profile_from_credentials_file AWS_REGION=us-east-2 aws elasticbeanstalk update-environment \ | |
--platform-arn "arn:aws:elasticbeanstalk:us-east-2::platform/Ruby 3.3 running on 64bit Amazon Linux 2023/4.3.0" \ | |
--environment-name "myappenv1" --region us-east-2 \ | |
--version-label "app-1234-210000_120123" | |
# older awscli using --solution-stack-name | |
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