- Newest
- Most votes
- Most comments
To create a URL like https://xyz.s3.amazonaws.com, you need to create an Amazon S3 bucket. Here's how to do it:
-
Sign in to the AWS Management Console and open the Amazon S3 console at https://console.aws.amazon.com/s3/
-
Click on "Create bucket"
-
Enter a bucket name (in your case, you would enter "xyz" to get the URL https://xyz.s3.amazonaws.com)
- Remember that S3 bucket names must be globally unique across all AWS accounts
- Choose a name that follows S3 naming rules
- Select a Region that is geographically close to you to minimize latency and costs, or to address regulatory requirements
- The Region you choose will determine your Amazon S3 endpoint
- Configure the bucket settings according to your needs:
- If you're planning to host a static website, you'll need to uncheck "Block all public access" and acknowledge the settings
- For standard storage, you can leave other settings at their defaults
- Click "Create bucket"
Once your bucket is created, you'll be able to access it using the URL format https://xyz.s3.amazonaws.com, where "xyz" is the name of your bucket.
If you're planning to host a static website in this bucket, you'll need to take additional steps to enable static website hosting in the bucket's properties section.
Sources
Community | Hosting my Static Website in an AWS S3 Bucket — Part 1
Tutorial: Configuring a static website on Amazon S3 - Amazon Simple Storage Service
hi,
Beside above, this REST API endpoint https://xyz.s3.amazonaws.com
my understanding is you are using for your application to access this bucket endpoint https://xyz.s3.amazonaws.com
Note: Making a bucket or objects publicly accessible should be done with extreme caution as it can expose your data to the internet.
Please read before giving permission to your role for your application.
here is the link for re:post, hope it will help.
https://repost.aws/questions/QUeeLN0TO9Q1WvxoJCGIO0fA/how-to-make-bucket-or-objects-public
Best,
answered a year ago
Relevant content
asked 3 years ago
- AWS OFFICIALUpdated 3 years ago
