In this lesson, you will learn how to create your first Amazon S3 bucket and explore its key functionalities. This guide covers steps from accessing the AWS console to creating buckets, uploading files, organizing content, moving objects, and finally deleting buckets—all while ensuring your S3 operations remain secure and efficient. Start by opening the AWS console and searching for the S3 service.Documentation Index
Fetch the complete documentation index at: https://notes.kodekloud.com/llms.txt
Use this file to discover all available pages before exploring further.


Creating a Bucket
To begin, click on “Create bucket” and follow these steps:- Bucket Naming:
Specify a globally unique bucket name. Avoid common names like “demo” that may already exist; instead, use unique identifiers such as “KodeKloud-demo-123.”
To understand the naming conventions, click the link provided next to the bucket name field.

- Region Selection:
Choose the region where your bucket will reside (e.g., US East 1).
If you have existing buckets and wish to mirror their settings, you can copy the configuration.
- Default Settings:
You can configure options including object ownership, block public access, versioning, encryption, and advanced settings like object lock. For this demonstration, use the default settings and keep block public access enabled to restrict access solely to you.






Uploading Files
Follow these steps to upload your first file:- Navigate back to the Objects page and click “Upload.”
You can either add files, upload entire folders, or drag and drop files directly into the interface. In this example, drag and drop a photo file.

- Review the file details, which typically include file type, size, and destination bucket. You can adjust object details or enable bucket versioning if needed. For this demonstration, retain the default bucket permissions and storage class settings.

- S3 offers various storage classes—Standard, Intelligent-Tiering, and Glacier—that help balance data access, resiliency, and cost. For now, use the default settings.





By default, your S3 bucket and its objects are secured so that only the creator has access. Adjust these settings only if you intend to share the file publicly.
Creating Folders and Organizing Files
Although S3 does not support a traditional folder structure, it simulates folders by using object prefixes. Follow these steps to organize your files:- In your bucket, click “Create folder” and provide a name (e.g., “food”).
- Open the folder and upload files, such as food-related images, using the same upload process and designating the folder as the destination.


Deleting Files and Moving Objects
Deleting Files
Removing objects from S3 is straightforward. To delete a file, follow these steps:- Select the file and click “Delete.”
- In the confirmation pop-up, type “permanently delete” to confirm the action.

Moving Objects
You can simulate moving files between folders within S3. For example, to move “steak.jpg” into a new folder named “test”:- Select the file and choose “Actions” > “Move.”
- Specify the full destination path (e.g., “s3://kk-demo-123/test”) either manually or by browsing.
- Confirm the move operation.



Deleting the Bucket
Before deleting a bucket, ensure it is completely empty. Deleting a non-empty bucket will result in an error.- Click the “Empty” button, type “permanently delete” in the confirmation box, and empty the bucket.

- Once empty, proceed to delete the bucket by typing its name to confirm the deletion.
Conclusion
This lesson provided a comprehensive overview of working with Amazon S3 buckets. You learned how to:- Create and configure buckets
- Upload and review files
- Organize files using simulated folders
- Move objects between folders
- Delete files and entire buckets