Tuesday, 21 February 2017

Create and Delete Amazon S3 Bucket: Step by Step Tutorial

Written By: Priyanka Dive

Amazon S3 is easy to use,with a simple web services interface to store and retrieve any amount of data from anywhere on the web. You can store and retrieve data from S3 by creating simple buckets. It is as easy as uploading and downloading data from internet (Just by some clicks). You can set permissions to your bucket’s data also you can user your S3 bucket with other AWS services like EC2. You can store any number of objects in bucket. The size of that object may vary from 1 Byte to 5 Terabyte.The Size of each bucket is 5 Terabyte. You can read some introduction about amazon Simple Storage Service from AWS document.


Getting Started

Here is a simple demonstration for creating S3 bucket and deleting it.
Amazon S3 is easy to use,with a simple web services interface to store and retrieve any amount of data from anywhere on the web. Here is AWS definition for AWS S3


You can store and retrieve data from S3 by creating simple buckets. It is as easy as uploading and downloading data from internet (Just by some clicks). You can set permissions to your bucket’s data also you can user your S3 bucket with other AWS services like EC2. You can store any number of objects in bucket . The size of that object may vary from 1 Byte to 5 Terabyte. The Size of each bucket is 5 Terabyte.


You can read some introduction about amazon Simple Storage Service fromAWS document.


Prerequisites:
You need AWS account.



1. Create Bucket
Log in to AWS console with your credentials.
Go to Simple Storage service directly using search box. By default, you can create up to 100 buckets in each of your AWS accounts.You can not create Bucket inside another Bucket.
Click on the Button Create Bucket.






2. Select bucket name and region
A bucket is a container for objects stored in Amazon S3. When creating a bucket, you can choose a Region to optimize for latency, minimize costs, or address regulatory requirements. 
Bucket name is unique globally.also choose region which is near to you to avoid latency.



3. Bucket Created successfully.
We have created bucket name amzon2017 in Singapore region successfully.



4. Upload image to bucket
select bucket.then click on Upload button.Click Add files + icon then choose sample image to upload on S3 from your hard drive.
click Start Upload button.




5. View this sample image
To view sample image right click and select open option from drop down list.or simply double click on image name.

NOTE:if your browser has blocked pop-up windows then allow pop-up from amazon console as follows.



After allowing pop-up ,You will see the sample image uploaded by you.



6. Deleting objects from bucket
Select object which you want to delete.Right click and select Delete option from drop down menu.The object will be deleted from your S3 bucket.



7. Deleting S3 bucket.
To delete bucket Select bucket which you want to delete.choose Delete Bucket from Actions.
After deleting bucket the bucket name will be available to reuse.



8. Provide Bucket name for confirmation of delete operation.



9. Error if try to access object after deleting bucket (in our case it is sample image)




10. Conflict if you try to create bucket with same name immediately after deleting:
If you want to get same bucket name after deleting bucket.then you need to try creating bucket after some time. AWS console will give you some conflict if try immediately.
Try creating Bucket after sometime you can create it successfully.


Conclusion

In this simple demonstration, we learn simply to create Amazon S3 bucket ,upload sample image and then deleting the same image and bucket...!!

7 comments:

  1. Thanks for your informative blog!!! Keep on updating your with such awesome information.

    Aws Online Training

    ReplyDelete
  2. You may count on the shift to be met with resistance from company administration, however the true doubts will come out of your IT workforce. After working with on-premise infrastructure for years, directors is not going to welcome any adjustments they assume may jeopardize their jobs. This is great blog. If you want to know more about this visit here AWS Cloud Certified.

    ReplyDelete

Amazon EKS - Kubernetes on AWS

By Komal Devgaonkar Amazon Elastic Container Service for Kubernetes (Amazon EKS), which is highly available and scalable AWS service....