mydomain
No ADS
No ADS

Create Amazon S3 Bucket

  1. Create a Bucket
  2. Upload files to S3 Bucket
  3. Public access
  4. Maybe you are interested

1. Create a Bucket

First, login to the Amazon AWS S3 Console.
Next, click the "Create bucket" button.
No ADS
Select "AWS Region" and enter the Bucket name.
AWS Region
The geographic region in which your data will be stored. Each region will have different storage prices. The cheapest regions are in the US, Canada or Europe, and the most expensive are in Africa. However, you should choose a region that is close to where you use it or near where your customers use it.
Bucket name
The name of the Bucket is unique to all users. So you should name your Bucket based on a domain name you own, for example:
  • mydomain.com
  • test.mydomain.com
  • test-mydomain-com
Object Ownership
Description
ACLs disabled
With this default option, all objects in this Bucket are owned by the account that created it. Access to this Bucket and its objects are specified through policies. You can set up policies for each specific Bucket.
ACLs enabed
Use this option if you allow this Bucket to be owned by multiple accounts. Access permissions to Bucket and its objects are determined through ACL (Access Control List).
Accept all other default options and press the "Create bucket" button.
Bucket has been created.

2. Upload files to S3 Bucket

If you are a beginner using S3 Bucket, you can upload a few files or a folder to S3 Bucket to experience its basic features.
No ADS
Click on the Bucket you just created in the step above to see the objects it contains.
Click the "Upload" button to upload files to Bucket.
Upload a few files
Click on any object you just uploaded, you can view basic information, including the object's URL. Note: You need to configure a policy for this Bucket if you want to download the object via URL or share it publicly.
  • S3 Client Tools

3. Public access

After creating a Bucket, you have many options for an S3 client to manage the Bucket with common functions such as uploading and downloading. Those tools will be suggested at the end of this article.
In the simple case where you want the objects to be downloadable via their URL publicly (No credentials required), you need some minor configuration with this Bucket policy.
1 - [Your Bucket] > Permissions > (bucket settings) > Edit
Unblock public access.
Save changes
2 - [Your Bucket] > Permissions > Bucket policy > Edit
To allow users to view any object on a Bucket and list objects on that Bucket, you need to set up a minimum policy like below. Change "your_bucket_name" in the text to your Bucket name, then copy and paste into the editor.
No ADS
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "Stmt-GetObject",
      "Action": [
        "s3:GetObject"
      ],
      "Effect": "Allow",
      "Resource": "arn:aws:s3:::your_bucket_name/*",
      "Principal": "*"
    },
    {
      "Sid": "Stmt-ListBucket",
      "Action": [
        "s3:ListBucket"
      ],
      "Effect": "Allow",
      "Resource": "arn:aws:s3:::your_bucket_name",
      "Principal": "*"
    }
  ]
}
For example:
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "Stmt-GetObject",
      "Action": [
        "s3:GetObject"
      ],
      "Effect": "Allow",
      "Resource": "arn:aws:s3:::test.teamcoder.net/*",
      "Principal": "*"
    },
    {
      "Sid": "Stmt-ListBucket",
      "Action": [
        "s3:ListBucket"
      ],
      "Effect": "Allow",
      "Resource": "arn:aws:s3:::test.teamcoder.net",
      "Principal": "*"
    }
  ]
}
Finally, click "Save changes".
See more specialized article about S3 Bucket policy:

4. Maybe you are interested

To manage resources on S3 Bucket you should use an S3 client application, it will make your work easier. The article below introduces you to such applications.
  • S3 Client Tools
Amazon S3 is not simply a data storage space, it can help you host a static website.
No ADS
No ADS