Using rbenv

On the working directory where the Amplify application is installed (usually /amp1/):

List available Ruby versions:

rbenv install -l

Set local Ruby version:

Sets a local per-project Ruby version by writing the version name to an .rbenv-version file in the current directory. This version overrides the global, and can be overridden itself by setting the RBENV_VERSION environment variable or with the rbenv shell command.

$ rbenv local rbx-1.2.4

When run without a version number, rbenv local reports the currently configured local version. You can also unset the local version:

$ rbenv local --unset

More information: https://javierjulio.com/rbenv/#section_3.2