Migrating a website to AWS

0

Hello,

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.

Regards!

2 Answers
1

Hi,

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?

AWS
answered 2 years ago
0

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.
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>D5KM6QNT1WNG339Z</RequestId>
<HostId>aa1YmAUJ/E5BIXXUfJ/Qm+DMg0s0lUIutTF+qlkelIcK9eeIHdcfy93f0x038C56eORyf5IBPNY=</HostId>
</Error>

How can I resolve it?

Regards

FJSanz
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