https://deliciousbrains.com/wp-offload-media/
WP Offload™ Media copies files from your WordPress Media Library to Amazon S3, DigitalOcean Spaces, or Google Cloud Storage and rewrites URLs to serve the files from that same storage provider, or from Amazon CloudFront or another CDN. And with the Assets addon, WP Offload Media can identify assets (CSS, JS, images, etc) used by your site and serve them from your preferred CDN.