Creating your first S3 bucket in AWS
Published: 2024-01-24 21:00:09

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](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4854sx89d1qjdxmfhv0k.png)

On the right click on create bucket


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x8jfkyze17vqp1fbxgmh.png)

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](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1owxt32qh0hdweo7w3gi.png)

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](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/950dk9wgnd1twfiewqu6.png)

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](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nddpbtaykmcqkvncnf29.png)

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](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oc5s5innrifz59h4qhn8.png)

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](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q4f0zuppi5zeu1qe297t.png)

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](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aku91es7b29xwu6eu526.png)

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


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7k1q9us6v7d0s5kelq3u.png)

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

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l37nbpjwv8klqi6owka7.png)

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