Please review my setup and kindly let me know if I missed anything: S3 and CloudFront CDN
Based on this Guide
Created two buckets:
One for CDN (Enabled ACL also)
One for Backups
Created policy by adding two buckets, attached with IAM user, and generated the access keys.
Created two CloudFront distributions:
-
cdn.mysite.com (origin is the cdn bucket) by configuring CNAME.
-
assets.mysite.com (origin is mysite.com) (Community is on the main domain, not sub-domain) by configuring CNAME.
Based on this guide:
Added the AWS S3 code, and configuration to app.yml as follows:
Thank You.