Wrong Ruby version on Elastic Beanstalk platform

0

I just created an environment using the platform "Ruby 3.0 running on 64bit Amazon Linux 2/3.6.2" but when I shell into the server and check the ruby version using ruby -v it shows "ruby 2.7.5p203 (2021-11-24 revision f69aeb8314) [aarch64-linux]".

Platform displayed in Elastic Beanstalk console

I've provisioned 2 environments with this platform but they're both stuck on Ruby 2.7.5 instead of the expected 3.0.5. I've also confirmed via IP addresses that I am indeed shelled into the correct instances for these Elastic Beanstalk environments.

What should be my next step to get this working?

已提问 1 年前535 查看次数
1 回答
0
已接受的回答

I figured it out. I had copied a saved configuration to create the new EB environments, updating the parameters as needed for the new platform. However, there was a configuration in there that specified an ami ImageId which overrode the platform preference:

  AWSEBEC2LaunchTemplate.aws:autoscaling:launchconfiguration:
    ImageId: ami-XXXXXXXXXXXXXXXXX

I removed the ImageId line and once the environment was provisioned it had the proper Ruby version.

已回答 1 年前
profile picture
专家
已审核 1 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则