Just to confirm you have the following setup:
1. AWS credentials in your production credentials file.
2. This should be in your Gemfile:
gem 'aws-sdk-s3', require: false
3. Then add this other to your config/environments/production.rb:
config.active_storage.service = :amazon