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?

preguntada hace un año536 visualizaciones
1 Respuesta
0
Respuesta aceptada

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 hace un año
profile picture
EXPERTO
revisado hace un mes

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas