Reputation: 406
I have a domain for example mydomain.com and a bucket on Amazon S3 that hosts my static website.
I want to link my domain to my bucket.
The bucket name should be same as my domain name:
and bucket names are unique in Amazon S3:
The name must be unique across all existing bucket names in Amazon S3.
the problem is a bucket with my domain name already exists and its not mine.
Upvotes: 3
Views: 1392
Reputation: 406
login into your AWS console, in the services menu under the Networking & Content Delivery group click on the CloudFront
in the CloudFront Distributions page click on the Create Distribution button
after creating click on its ID in the list to go to configuration page
in the Origins and Origin Groups tab click Create Origin buton and enter your bucket name in Origin Domain Name field and fill other boxes
now you can go to Route 53 -> hosted zones and create a new hosted zone with your domain and create an A record like www.mydomain.com and point it to cloudFront
Upvotes: 1