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.
Click on Services and select S3 from the Storage section.
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.
Now click on Create bucket button.
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.
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.
In the next window click on the User tab on the left menu and then click on the Add User button.
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.
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.
Click on Create group button and you will see a new popup window. Enter your group name (Ex: S3_Admin_Group).
Now filter the policy list by typing S3 into the search box and then select AmazonS3FullAccess and hit Create group button.
3. Add Tags
This is an optional section, here you can store more information of your user in Key-Value pairs (ex: email : email@example.com )
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.
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.
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.
- Sign in to AWS Management Console and select S3
- Select your S3 bucket from the list of buckets and click on bucket name
- New window will open and now click on Permission tab
- Now click on Bucket Policy button and enter below code into textarea and save.
"Resource": "arn:aws:s3::: YOUR-BUCKET-NAME/ *"
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?