Amazon S3 - Introduction Hands On
Tags: aws, tutorial, beginners, cloud
Published: 2021-07-13 04:22:02

We studied about AWS S3 in the last tutorial now we study how we can add, delete objects in our S3 bucket. Lets move right into it.

* Go the AWS Console Dashboard search for S3 and select it.
![s3 search](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nj7n4e3vtgpnn9hfda49.png)
* This will land you on the S3 console. Select create bucket on it
![S3-2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ssbizxuotvlku7emtfv8.png)

* Select Bucket name and bucket region, remember bucket name has to be unique. Although AWS S3 is a global service but buckets belong to a specific region. 


* Don't change the block all public access setting its about permissions and we will study about permissions to a bucket later on.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qs7cdvta6cgxiv0jr2m3.png)


* Then there is bucket versioning if this is enabled we can version our objects. So that the old data is not lost. We disable it for now. To keep this tutorial simple.


* Add tags as you want you can add tags to identify what this bucket is for. Lets learn about encryption and advanced settings later on. Click create bucket.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s2g02ik94wzysrrig80h.png)


* Now let us upload some assets on this bucket. To upload click on the bucket. You will se an upload button, click it.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hyxjmn38852d97bxh0jp.png)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/74vw5b4yloo7y10bwqa2.png)

* Here you can add files by clicking the add files button. After that select a file and click upload.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1brofwyq1ggfvrkmqjyw.png)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1sqme7j5h66w87motsx8.png)

* You will see the following screen. Once upload is completed click close. We have uploaded a file.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qo4ee986395yq6ikfx8t.png)


* Open the S3 object. Click on the object URL. You will se an access denied page. So how we see the contents of our page.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uv4zjg2zvj6fcbq0qqiw.png)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7cwppnknk8rcyty92eeu.png)

* On top there is an open button click on it and you can see the contents of the file. So, why does this link works and the earlier one didn't because when we click the open button at the top we are given a url that has no security and has some params which bypass the security. By default all our S# objects are not public. So a public url does not work we have to assign permissions to S3 objects by bucket permissions which we will check later on.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uv4zjg2zvj6fcbq0qqiw.png)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pajltq95yp14u17cy6mo.png)


* Let's delete this object. Go to the bucket select the object and click delete.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qwco4rt4j67otkzdd2wb.png)


* Type permanently delete to delete the object and click delete objects. Click close on next screen after deletion is completed.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6o6sfat96ivp23152wd4.png)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qd98vpbqsvs6s1y2d5wy.png)

* Now our bucket is empty. This is it for this tutorial.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5jktq7yt8iqute05kz9d.png)

We added and deleted objects in AWS S3 in the next section we will study about permissions and bucket versioning.