RANDY CAIQUO said almost 3 years ago on Deploying to Amazon Linux 2 :
David, thanks for the quick response, the Swap work! 
But still having issues with bundler and been trying a lot of suggested solutions but can't get it to work. Not sure if the .bundle is working

We have been using ruby -2.6.6 and AWA platform ruby -2.6 but upgraded app to ruby 2.7.3 and deploying to a new AWS environment with ruby 2.7 Linux 2