Home Tech How to create S3 bucket in AWS?

How to create S3 bucket in AWS?

6 min read
0
0
51
How to create S3 bucket in AWS?

In this tutorial, I will explain to you how to create your first S3 Bucket (Simple Storage Service) in AWS.

For this, you will need an AWS account. If you do not have one then you can easily register from this link. AWS is offering more than 60 products FREE for 12 months.

Create an AWS S3

Once your account is ready, login into your account and go to the AWS Console.
step1

Click on Services and select S3 from the Storage section.
step2

Here you will see the number of S3 Buckets you have. As this is your first time you will see 0 Buckets in the top right corner.
step3
Now click on Create bucket button.

step4
Now enter your bucket name, which is globally unique that means you need to enter a name that is not taken by anyone.

After that select a region nearest to your location. After all, click on the button Create and in a few second your bucket will be ready.

step6

Create user and grant full S3 permission

Here we will create one user with full access to all buckets via the AWS Management Console.

Select IAM from the Security, Identity, & Compliance section.
step7

In the next window click on the User tab on the left menu and then click on the Add User button.
step8

1. Add User
In this section enter your desire User name, you can add multiple users at once with the same access type and permissions. Now select the AWS access type, right now I am selecting both access types. As of now I am deselecting Require password reset, you can select it if you want to force the user to change the password when they log in first time into the console.
step9

2. Set Permissions
Here you need to create one group and in that group, we will add our user, so we can manage permission according to it.
step10

Click on Create group button and you will see a new popup window. Enter your group name (Ex: S3_Admin_Group).
step11

Now filter the policy list by typing S3 into the search box and then select AmazonS3FullAccess and hit Create group button.
step12

3. Add Tags
This is an optional section, here you can store more information of your user in Key-Value pairs (ex: email : info@wittyhack.com )
step13

4. Review
In this section, you need to review all the information which you have entered in previous steps. You can go back and do changes if required.
step14

5. Download CSV
This is the final and very important step. Click on the Download CSV button and store files on your local system safely. For security reasons these credentials visible one time only.
step15

Make S3 bucket public

By default, all AWS S3 resources are private and the only owners of that resource can access them.

So if you want to access all your files publicly then follow the below steps.

  1. Sign in to AWS Management Console and select S3
  2. Select your S3 bucket from the list of buckets and click on bucket name
    step16
  3. New window will open and now click on Permission tab
    step17
  4. Now click on Bucket Policy button and enter below code into textarea and save.

    {
    "Version": "2008-10-17",
    "Statement": [
    {
    "Sid": "AllowPublicRead",
    "Effect": "Allow",
    "Principal": {
    "AWS": "*"
    },
    "Action": "s3:GetObject",
    "Resource": "arn:aws:s3::: YOUR-BUCKET-NAME/ *"
    }
    ] }

    step18
    You’ll need to replace “YOUR-BUCKET-NAME” with your full bucket name.

I hope this tutorial will help you to create your first AWS S3 bucket. If you face any issue then let me know in the comment section below.

Do you know How To Setup EC2 Instance (Linux) In AWS?

  • ec2

    How To Setup EC2 Instance (Linux) In AWS

    In this tutorial I will explain to you how to start your EC2 Instance, for this we will us…
Load More Related Articles
Load More By Wittyhack
Load More In Tech

Leave a Reply

Your email address will not be published. Required fields are marked *

Check Also

JsonMonk.com – Free Dummy REST API Collection

In this article, I am going to show you one of the best tools available in the market for …