It is saying AWS is uninitialized. I am usign the aws-sdk-core gem.
I tried using the aws-sdk gem instead, and the problem was still there.
This is the initializ
I am not a Ruby expert, but I've solved the same issue by running the below commands.
To remove the installed AWS gems
gem list --no-version --local | grep aws | xargs gem uninstall -aIx
To install the v1 gem which was compatible with my Ruby script:
gem install aws-sdk -v 1.64.0
I agree this is not the recommended way as AWS recommends to use the latest version, but this should be useful for someone who does not want to modify their existing scripts.