I had an experience on cloudflare CDN
by setting the nameservers
, and I can check by header CF-Cache-Status: HIT
to see if it works.
But AWS Cloudfront
setting is in different way and I don't sure whether it works or not.
I've read other stackoverflow posts like Cloudfront CNAME vs DNS CNAME, but there have no more details.
Lets's say I want to cdn from domain.com to AWS Cloudfront, and here are what I've done:
- Request a certificate to domain.com from Certificate Manager, and add a CNAME record
Name:_5d5g45u2j2r5w1s2a8ed2.domain.com/Value:_5f44y54d25s1de4fg4f52s5s4dc1s5.kdiesksqs.acm-validations.aws
on domain.com - Certificate Manager success validate domain.com and the certificate was issued
abcd-1234-abcd-1234-abcde
Create Distribution from CloudFront with detail:
- State:Enabled
- Alternate Domain Names (CNAMEs):domain.com
- SSL Certificate:domain.com (abcd-1234-abcd-1234-abcde)
- Domain Name:11ppqrstuv.cloudfront.net
When I browse 11ppqrstuv.cloudfront.net, it looks identically to domain.com, so I know AWS is able to grab my file.
But how could I know the domain.com successfully point to AWS(11ppqrstuv.cloudfront.net)?
Are there anything I need to do?