standac
standac

Reputation: 1097

How to point domain names to S3 objects?

I would like to create multiple webpages in a single S3 bucket and access them by different domains.

For example, I have S3 objects:

That can be accessed like that:

Is it possible to access those S3 objects by domain:

Upvotes: 0

Views: 74

Answers (1)

E.J. Brennan
E.J. Brennan

Reputation: 46879

Yes, it is possible. SInce you are essentially trying to create multiple websites within a single s3 bucket, you'll want to use cloudfront to accomplish this.

Bit more complicated than setting up a single s3 bucket static website, but not hard to do using the many examples/directions aws has.

Upvotes: 2

Related Questions