Tiberiu Maxim
Tiberiu Maxim

Reputation: 1582

S3 static website on double sub-subdomain

I want to host a static website on a sub-subdomain, for example on sub1.sub2.domain.com

  1. Created a bucket named sub1.sub2.domain.com

  2. Added a policy to allow getObject publicly At this point http://sub1.sub2.domain.com.s3-website.eu-central-1.amazonaws.com serves the website

  3. Tried adding a DNS rule for sub1.sub2.domain.com like so:

    • CNAME(alias) value sub1.sub2.domain.com.s3-website.eu-central-1.amazonaws.com - doesn't work, i get this error when saving: The record set could not be saved because: - Alias Target contains an invalid value.
    • A(alias) value sub1.sub2.domain.com.s3-website.eu-central-1.amazonaws.com - same error

I've done the same thing for another static website hosted under only a subdomain (not a sub-subdomain).

Is there any possibility to achieve this?

Upvotes: 1

Views: 328

Answers (1)

b.b3rn4rd
b.b3rn4rd

Reputation: 8830

Type: A

Alias: Yes

Alias Target: s3-website.eu-central-1.amazonaws.com

Upvotes: 2

Related Questions