DEV Community

Cover image for Creating an S3 Bucket in AWS: (A Step by Step Guide)
BraimohVictoria
BraimohVictoria

Posted on

Creating an S3 Bucket in AWS: (A Step by Step Guide)

Amazon S3 is a storage service that enables you share and retrieve your pictures, videos, documents, files or other data in the cloud.

Creating an S3 storage commonly known as a bucket is a very simple process. I'll show you how.

Step 1: Log into your Amazon account and search for S3 in the search bar. Click on the first item.

Image description

Step 2: Go on to select Create Bucket and fill in the details in the page that follows. Your selected bucket name should be unique and without an uppercase letter. Then proceed to choose a region closest to you.

Image description

Image description

Step 3: Object Ownership: Enable your ACL. This is your Access Control List. It gives access to other users to view your data when granted the necessary permissions.
Next, unblock your public access and acknowledge. This is also to enable other users access your picture or video on the browser.

Image description

Image description

Step 4: It's advisable to add a tag if it's a business account. This enables you add more information and also track your billings. We won't be adding tags, so, leave the other settings as default and go on to create your bucket. You will get a success notification.

Image description

Image description

Step 5: Your bucket has been successfully created. Open your newly created bucket and click on upload to add your files. Select your desired picture or file and upload. Again, a success notification should pop up.

Image description

Image description

Image description

Image description

Image description

Step 6: Go back to your newly created bucket and open the file or picture you just uploaded.

Image description

Image description

Step 7: Go to the image permissions. Edit the ACL list to "read" for other users. This means they'll be able to read or see your file only and unable to make changes or edit them. Edit and save changes.

Image description

Image description

Image description

Step 8: As usual, a success notification will pop up. Now, go to the image's properties and click on the object url. This should automatically take you to view your file or picture or whatever you uploaded in the cloud.

Image description

Image description

Hold on...Before we go, remember it is always necessary to clear up your resources when done and when not in use. To delete your uploaded file and bucket, click on the file first and click delete. Type in permanently delete and confirm. Do the same thing for the bucket.

Image description

Image description

Image description

Now, we are back here like we never created a storage.!

Image description

If you encounter any issue(s), feel free to reach out.

Top comments (0)