AWS – S3 Bucket
Table Of Contents:
- What Is S3 Bucket?
- Key Features Of S3 Bucket.
- How To Create A New S3 Bucket?
- How To Store Files In S3 Bucket Using Python?
(1) What Is S3 Bucket?
An Amazon S3 bucket is a cloud storage container used to store and organize data (files, images, videos, backups, datasets, ML models, etc.) in Amazon Simple Storage Service (S3).
Think of an S3 bucket as a folder in the cloud, but with unlimited storage capacity and global accessibility.
(2) Key Features Of S3 Bucket?
(3) How To Create A New S3 Bucket?
(Step-1) Search For S3 In Search Bar
(Step-2) Click On Create Bucket
(Step-3) Give A Bucket Name
(Step-4) Object Ownership Option
(Step-5) Block Public Access Settings For This Bucket
(Step-6) Bucket Versioning
(Step-7) Give A Bucket Tag
(Step-8) Enable Default Encription
(Step-9) Apply Object Lock
(Step-10) Click On Create Bucket
(Step-11) Bucket Created Successfully
(Step-12) Open The Bucket For Use
(4) How To Store Files In S3 Bucket?
import boto3
s3 = boto3.client("s3")
bucket_name = "praudyog-s3-bucket" # Replace with your actual S3 bucket
s3.upload_file("model.tar.gz", bucket_name, "model.tar.gz")
s3_model_path = f"s3://{bucket_name}/model.tar.gz"
print(f"Model uploaded to: {s3_model_path}")

