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?

demandé il y a un an535 vues
1 réponse
0
Réponse acceptée

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.

répondu il y a un an
profile picture
EXPERT
vérifié il y a un mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions