3. Use CloudFront
It took minutes to deploy CloudFront distribution. After it deployed, I can request to the Distribution domain name, similar to d1h8c2008a5f6j.cloudfront.net.
Go to Route 53 - Hosted zones - Select the domain - Create record.
Record name: api
Record type: A
Alias: on
Route traffic to Alias to CloudFront distribution
Enter "d1h8c2008a5f6j.cloudfront.net"

Now I can use the api through "https://api.ourcompanylunch.com".
Last updated