WP Offload™ Media, previously known as WP Offload S3, is a plugin that transfers files from your WordPress Media Library to Amazon S3, DigitalOcean Spaces, or Google Cloud Storage. This plugin also modifies URLs to deliver the files from the same storage provider or from a CDN of your choice, such as CloudFront. Additionally, with the Assets addon, WP Offload Media can detect assets like CSS, JS, and images used by your website and serve them from your preferred CDN.
Check out the demo here.