Book Image

Amazon S3 Essentials

By : Sunil Gulabani
Book Image

Amazon S3 Essentials

By: Sunil Gulabani

Overview of this book

Amazon Simple Storage Service (Amazon S3), provides developers and IT teams with secure, durable, and highly-scalable object storage. 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. S3 is automatically web scalable and responds to the requirements of your application and traffic, and therefore offers a key element to help companies deal dynamically with any spike in traffic for their application (such as a free e-book offer). This book starts with the basics of the Amazon S3 and its features, and you will quickly get an understanding how to use the Amazon Management Console for Amazon S3 which is the simplest way to manage Amazon S3. Next, we will cover basic operations on bucket, folder, objects. Once the basic operations are understood, you will know how to use Amazon S3 using Java SDK. Following that, you will learn about Copy Objects and Multipart copy objects for large objects size. You will also learn to manage the life cycle of bucket and how to share resources to the different domain by configuring CORS. The book will then guide you through the development and deployment of a static website on Amazon S3 using different services of Amazon. By the end of the book, you will be able to create a scalable application using Amazon S3.
Table of Contents (12 chapters)

Folder operations


The folders in Amazon S3 are S3 files that are used to put Amazon S3 objects together under one group. The S3 folders are similar to the file system in computers. Nested folders can be created. Permissions can also be levied on folders, as in the case of Amazon S3 objects. Folders are just treated as a prefix to the objects—they are used as the key name prefix for the objects.

As you can see in the preceding screenshot, we have created a folder named sg-folder. Once the folder name is given, you cannot rename it. You can create and delete folders. You can even make a folder and its objects accessible to the public.

As seen in the preceding screenshot, under the folder tab, we have an option to:

  • Create Folder…

  • Upload

So, using the Create Folder… option, we can create folders within the folder.

A folder can be made publicly accessible by clicking on the Make Public option:

You can delete the folder when you don't need it anymore, as shown in the following screenshot: