DEV Community

Cover image for Creating your first S3 bucket in AWS
Muchiri
Muchiri

Posted on

Creating your first S3 bucket in AWS

Amazon web services provides a infinite number of services, from compute, storage, networking and other IT solutions.

Simple storage service (s3) is a service that provides storage for objects i.e files of any format for videos, documents, log files are some of the files you could upload in a Bucket.
we will create a bucket and upload a file to the bucket

in order to undertake this exercise you need to have an AWS Account and to do that you can visit this link
https://docs.aws.amazon.com/SetUp/latest/UserGuide/setup-AWSsignup.html
it provides a step to step guide to setting up your account.

login in the account, navigate to the search-bar next to the service button at the top type s3

Image description

On the right click on create bucket

Image description

S3 is a global service, it is not region specific based on the AWS ecosystem. Your Bucket is hosted in a region, select your region of choice

Image description

AWS provide you two options on bucket type General purpose and Directory buckets
The General purpose is recommended for most use cases and Directory bucket uses the S3 Express One Zone storage class for application is performance sensitive or performance-critical for workloads and applications.
in our case we will select the General purpose as this tutorial does not require critical

S3 names should be globally unique, i will name mine name your bucket as you wish.

The next step there is an option of object ownership to enable access control list, this feature allows objects to be owned by other AWS accounts. In our case we disable this function

Image description

S3 allows public access option with different sub-settings for fine tuning public access, this is useful in cases like when you host a static website, giving access to files to the public or to verified users.
in our case we will not allow public access in our case

Image description

while setting up s3 offers versioning option, this is useful in the updating of different versions of an object in a bucket, we will look at another article. We will disable versioning

You can add tags to easily identify the bucket especially if it is used by different services, we will not be needing this as for now.

All data is Encrypted, s3 offers a number of encryption options.As for now we will go with the default option.

Image description

Before you create the bucket,navigate the advance settings,there is object lock, this works when the bucket is versioned, but it is useful for write once read many time to prevent objects from being deleted or overwritten.

Create your bucket. When successful a green popup will indicate that the s3 was successfully created.

Image description

click on the s3 bucket, another page will provide additional settings for the bucket. click on the upload button, i will be uploading an image to the bucket. S3 allows you to upload both as a file or as a folder, i will be adding a file

Image description

Navigate to file folder, mine is at the desktop at pic folder

Image description

After successfully uploading the file a notification shows it went through.

Image description

I hope this was helpful as you begin your AWS journey.

Top comments (0)