kapil gupta
kapil gupta

Reputation: 353

Create a DNS URL for aws public s3 bucket

I want to provide a customized DNS URL to aws s3 bucket. I can access the files of my s3 bucket as URL https://<s3-bucket-name>.s3-ap-southeast-1.amazonaws.com/folder-name/file.png But I want to provide URL as https://abc.example.xyz . Not sure how can I do it.

Tried steps - I tried with using Route 53 and mapped the abc.example.xyz with <s3-bucket-name>.s3-ap-southeast-1.amazonaws.com but that didn't work.

The purpose of this bucket is to store files like jpg and pdf, which can be accessed via URL.

Upvotes: 0

Views: 614

Answers (1)

kapil gupta
kapil gupta

Reputation: 353

The bucket name has to be the same as of the customized DNS, then the CNAME works well in AWS route 53. I created a bucket with name abc.example.xyz and then used CNAME abc.example.xyz with abc.example.xyz.s3-ap-southeast-1.amazonaws.com. It works fine.

Upvotes: 1

Related Questions