Paperclip was deprecated in May 2018: https://thoughtbot.com/blog/closing-the-trombone. Rails ActiveStorage can be used instead, which also has an AWS S3 backend.
Example article that describes a large-scale migration: https://medium.com/sortlist-engineering/migrating-from-paperclip-to-activestorage-a-different-approach-4bffa2260e17.