LoginSignup
1
0

More than 3 years have passed since last update.

【裏技】ElasticBeansTalkのアプリケーションサーバのRubyバージョンを上げる方法

Posted at

Elasticbeanstalkのアプリケーションサーバの変更ってGUI上では限定されたものしか出来ずに困ったりしたことはないでしょうか?
私もRuby2.5に合ったものにしたかったのに2019年4月現在Puma/Passenger+Ruby2.3しか選択できなくて困っていました。
AWS-CLIを使う方法で変更できることがわかったのでお知らせします。
AWS-CLIに関してはこれを参照ください。
【初心者向け】MacユーザがAWS CLIを最速で試す方法
https://dev.classmethod.jp/cloud/aws/mac-aws-cli/

スクリーンショット 2019-04-27 18.43.38.png

この設定の部分です。
スクリーンショット 2019-04-27 18.43.18.png

こんな風に変更できます。AWS-CLIがインストールされている前提で以下のコマンドを打ちます。
ちなみに選択できるアプリケーションサーバはこちらからご確認ください。
https://docs.aws.amazon.com/ja_jp/elasticbeanstalk/latest/platforms/platforms-supported.html

$ aws elasticbeanstalk update-environment --environment-name oooo-staging \
 --solution-stack-name "64bit Amazon Linux 2018.03 v2.9.2 running Ruby 2.5 (Passenger Standalone)" \
--region ap-northeast-1

True    oooo    oooo-staging.ap-northeast-1.elasticbeanstalk.com
2016-09-07T00:22:14.784Z    2019-04-27T07:48:25.529Z
Staging server of oooo  awseb-e-a-AWSEBLoa-1RFIYNOOU2G87-12345.ap-northeast-1.elb.amazonaws.com
arn:aws:elasticbeanstalk:ap-northeast-1:98765:environment/oooo/oooo-staging e-a3yh9ap3c3    oooo-staging    Grey
arn:aws:elasticbeanstalk:ap-northeast-1::platform/Passenger with Ruby 2.3 running on 64bit Amazon Linux/2.9.2   64bit Amazon Linux 2018.03 v2.9.2 running Ruby 2.3 (Passenger Standalone)   Updating    app-c2d0-190427_014155
TIER    WebServer   Standard    1.0
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0