Migrating a website to AWS



I'm migrating my very simple website to AWS. I've followed all these steps:

  • Domain transferred
  • Buckets prepared
  • SSl certificate active to my domain
  • All routed in Route 53
  • And finally Cloudfront Distribution created

Last one has this information:

  • Domain name: <CloudFront Domain>
  • Alternate domain names: <My Domain>
  • Origins: <My Domain>.s3.eu-west-1.amazonaws.com
  • Status: Enabled
  • Last modifies: October 28, 2022 at 8:03:42

When I try to access from <CloudFront Domain>, all works fine, I can see my web. But, when I try to use <My Domain> (with or without www, http or https), I get an error message "Can't find IP direction of <My Domain>".

What's can be wrong?

===== Solution ====

Don't worry.

I forgot to write an A record linking <My Domain> and <CloudFront Domain> in my Hosted Zones.

Everything working fine now.


2 Answers


I'm glad you are able to resolve the issue .

This is for future reference How do I use CloudFront to serve a static website hosted on Amazon S3?

answered 2 years ago

Hi again,

Another question.

In my static web, I have three address:

I've added a 404.html error document in my bucket and specified it their properties.

If I try to go to a non existent path in:

I get the 404.html error document. Fine, everything is working.

But, if I try to go to (same false path):

I get this ugly message:

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Message>Access Denied</Message>

How can I resolve it?


answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions