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?

posta un anno fa535 visualizzazioni
1 Risposta
0
Risposta accettata

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.

con risposta un anno fa
profile picture
ESPERTO
verificato un mese fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande