You are currently viewing How to create, upload and delete a file in S3 Bucket

How to create, upload and delete a file in S3 Bucket

Loading

This blog post will show you how easy it is to create, upload and delete a file in S3 (Simple Storage Service) bucket in AWS. No matter how much you know about the cloud, these simple steps will help you get better. Check out our step-by-step guide to easily handle your S3 buckets and get more out of the cloud.

Introduction to Simple storage Service (S3)

It is a service in AWS where the objects (It consists of the data itself) are stored in the bucket. There are two types of bucket is present in AWS.

  • General purpose bucket
  • Directory bucket

There are following important points regarding S3 Buckets

  • Each bucket can contain unlimited number of the objects.
  • You can create maximum upto 100 general purpose buckets and 10 directory buckets in your account. If you want to increase this you have to make a request to AWS Service quotas.
  • The maximum object size that you can upload is 5 terabytes
  • Bucket name can’t be in capital letters. It should be in between (3-63) characters long.

Steps to create S3 Bucket

First of all, you have to go to the AWS Management Console.

Then search for S3 and select it.

The next step is to click on the Create bucket button.

The next step is to give your bucket a name. Make sure that name is unique, and it is in small-case letters. Rest leave everything as default and click on Create bucket.

Now you can see that your bucket is successfully created.

Steps to upload a file in S3 Bucket

First click on bucket name which is “firstbucket0072“. You will see an interface like this

The next step is to create a folder by clicking on the “Create folder” option. Give the folder a name such as dataset rest leave everything as default and click on Create.

Now you can see you have successfully created a folder named dataset.

The next step is to click on the folder named “dataset”. You will see an interface like this. Next click on the upload option.

You will see the Upload interface like this.

Now click on the Add files and select any CSV file from your laptop such as train.csv.

Rest leave everything as default and click on the Upload option. You can also see the location of your bucket in Destination. It is s3://firstbucket0072/dataset.

Now you can see your file is successfully uploaded to S3 bucket.

Steps to delete a file in S3 Bucket

First you have to select a file that you want to Delete and click on the Delete button.

Now type permanently delete and then click on the Delete objects. Your file is successfully deleted now.

Similarly, if you want to delete a bucket. First of all you have to delete all the contents from the bucket and then you can delete the bucket.

Conclusion

With our blog, it’s easy to create S3 buckets. You can now build, upload, and delete buckets with confidence, which makes you better at using the cloud. In the next blog we will learn about how to perform copy and move operations in the S3 bucket, We will also see what are the various configurations presents while creating S3 bucket such as Access Control List, Bucket policy and many more.

You can tell your friends or coworkers about this blog if you like it. There are social media sites like LinkedIn, Twitter, and Instagram where you can find me.

This Post Has One Comment

Comments are closed.