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?

feita há um ano535 visualizações
1 Resposta
0
Resposta aceita

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.

respondido há um ano
profile picture
ESPECIALISTA
avaliado há um mês

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas