Set up Your Domain with CloudFront


#1

From @jayair on Mon Apr 10 2017 01:09:34 GMT+0000 (UTC)

Link to chapter - http://serverless-stack.com/chapters/setup-your-domain-with-cloudfront.html

Copied from original issue: https://github.com/AnomalyInnovations/serverless-stack-com/issues/65


#2

From @jeffthefate on Wed Sep 13 2017 15:34:34 GMT+0000 (UTC)

I’m not sure if this was just because I had to move a domain from one AWS account to another, but my domain and hosted zone didn’t have the same name servers. Once I synced those up, everything was magic.


#3

From @jayair on Wed Sep 13 2017 18:55:33 GMT+0000 (UTC)

@jeffthefate Thanks for leaving a note. I’m not sure if that’s the issue but it might help some other folks.


#4

From @littleredshack on Mon Dec 11 2017 06:42:39 GMT+0000 (UTC)

Small update. When I start this section on Creating Hosted Zones I get the following screen:

Then I click on Create Hosted Zone and I get:

So I fill in the right hand form and click Create:


#5

From @jayair on Mon Dec 11 2017 13:47:21 GMT+0000 (UTC)

@littleredshack Thanks for the comment and the screenshots. I added a small note to the chapter about it.


#6

From @littleredshack on Tue Dec 12 2017 05:43:33 GMT+0000 (UTC)

Stuck on this one guys. I have set DNS servers the same for domain and hosted zone as per comment above.

After I make this DNS change do I need to wait 24 hours or something? I did get an email from AWS confirming that the DNS server entries had been changed. But when I try to open a browser to my domain I get:


#7

Not sure if you’re still having issues - pro tip is to create an account to post in the AWS forums and post your question there, they have engineers looking at all the questions and can take a look at things from the backend to help you troubleshoot. I posted there and got help within an hour.


#8

Could you give me pointers on how to configure this on a domain I already own?

I own a domain on OVH and want to serve the app on a subdomain. I’ve created a redirection in the OVH console but that doesn’t seem to be enough.


#9

I know you can transfer the domain to Route 53 but in this case you want to use a subdomain. It’s a bit more complicated for that. I think this doc helps with that:

https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-to-cloudfront-distribution.html