Reputation: 2422
I have 2 domains and I would like to route them to different directories in the same S3 bucket
domain1.com > s3-bucket/domain1
domain2.com > s3-bucket/domain2
is this possible? I couldn't find anything.
do I need to route all oF them to a single location (like a lambda function) and somehow redirect to a bucket directory?
Upvotes: 0
Views: 316
Reputation: 494
You will need Cloudfront to do what you want.
Upvotes: 2
Reputation: 270144
This is not possible.
DNS names resolve to an IP address. There is no way to indicate a Folder via a domain name.
Also, Amazon S3 requires that Bucket names match the Domain name. See: Configuring a static website using a custom domain registered with Route 53 - Amazon Simple Storage Service
Upvotes: 1