What is S3 Bucket & How to mount a S3 Bucket as a Drive (network drive)
Published: 2022-01-17 09:50:00

## **_S3 bucket [Simple Storage]_**

- Also known as Object Storage & is similar to your computer 
storage (like local disk D:) but virtually. 
- In this storage, you can store all of your data (pics, videos and documents , files).
- 99.99% availability
- 99.999999999% (11x9) durability
- Storage : 0 bytes to 5 terabytes
- Tiered Storage Available
- Lifecycle Management
- Versioning
- Encryption
- Secure your data using Access Control Lists and Bucket Policies.

## **_How to create a S3 bucket_**

- Open the Amazon S3 console

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

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zbau748x8h26bd2a48uw.png)
- Enter Bucket name, Start with a lowercase letter or number.
- In Region, choose the AWS Region where you want the bucket to reside.
- ACLs enabled

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

- You can Enable versioning

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

- Choose Create bucket.

- Now You Have Successfully Created a S3 Bucket.

- Inside that bucket you can add upload any file.

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

- Click on add file , browse and select it.

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

- Make Url public
.

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

- Copy and paste that public Url in browser[Publicly accessible].


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

## After that we have to create a user(IAM user)

- Search for IAM.

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

- Go to users.
- Add User

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

- Next permission

- Now select attach existing policies and search for s3 full access

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

- Next tag
- Create user.

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

- Now click on download.csv file and copy access and secreat keys.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0n1xf65xp1nx9uumebto.jpg)

## _Download Tntdrive_

- One such way is to download a Tntdrive.

- open Tntdrive
-Write account name , select account type Amazon S3 & paste access and secreat keys.

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

- Click on add new account
- Add new mapped drive
- Amazon s3 bucket - browse and select the IAM user you created.

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

- Add new drive

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

- click on open

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0gtmh36ydrq4ooilvzlp.jpg)

- Network drive successfully created on your local disk


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jtmkoe5mbqnkt7gf55na.jpg)
You can now add anything inside this disk , it will reflect in s3 bucket.