I have a DNS setup with DigitalOcean for the domain
ghazanfarmir.me
What I want to do?
I would like a sub domain i.e. static.ghazanfarmir.me
to be linked to the CloudFront Distribution, which then is linked to the S3 bucket containing all my assets. So I can access the CDN using the sub domain static.ghazanfarmir.me.
What I have done so far?
- Setup S3 bucket containing all of my assets and have created a CloudFront distribution off this S3 bucket (
d17jymztihbpvb.cloudfront.net
)
- Created CNAME record on DigitalOcean DNS for
static.ghazanfarmir.me
to the CloudFront distribution i.e.d17jymztihbpvb.cloudfront.net
This doesn't work, can someone please explain how this would work, or if this works at all this way?