AWS S3 (Simple Storage Service) -

What is AWS S3?
AWS S3 (Simple Storage Service) is a cloud storage service that allows you to store and retrieve any amount of data from anywhere on the internet. Think of it as a giant hard drive in the cloud where you can store files like photos, videos, documents, and even entire backups of your computer.
Key features of AWS S3:
Scalable: You can store as much data as you want.
Durable: Your data is safe and protected against failures.
Secure: You can control who has access to your data.
Cost-effective: You only pay for what you use.
How to Use AWS S3 (Step-by-Step Guide)
Step 1: Sign in to AWS Console
Go to AWS Management Console.
Log in with your AWS credentials.
Step 2: Create an S3 Bucket
In the AWS Console, search for S3 and open the service.
Click Create bucket.
Enter a unique bucket name (Bucket names are globally unique).
Choose an AWS Region closest to your users.
Configure Bucket settings (Versioning, encryption, etc.).
Click Create bucket.
Step 3: Upload Files
Open your bucket.
Click Upload.
Drag and drop files or browse to select them.
Click Upload to store the files in S3.
Step 4: Set Permissions (Optional)
Select the file.
Click Permissions tab.
Modify Access Control to make it public or restrict access.
Step 5: Access Your Files
Once your files are uploaded, you can access them anytime by clicking on the file name in the bucket. You can also share the file URL with others.
Advanced Features of AWS S3
Now that you know the basics, let’s dive into some of the more advanced features of AWS S3.
AWS S3 Versioning
What is it?
- S3 Versioning allows you to keep multiple versions of an object in a bucket.
How to Enable?
While creating a bucket, enable Bucket Versioning under Advanced settings.
If the bucket is already created, go to Properties > Versioning > Enable.
AWS S3 Replication
What is it?
- S3 Replication automatically copies objects from one bucket to another.
Types:
Same-Region Replication (SRR): Copies within the same AWS region.
Cross-Region Replication (CRR): Copies to a different AWS region for disaster recovery.
How to Enable?
Go to Bucket Properties > Replication rules > Create rule.
Select Source bucket and Destination bucket.
Configure IAM permissions and save the rule.
AWS S3 Data Encryption
AWS S3 supports encryption to protect data:
Server-Side Encryption (SSE):
SSE-S3: AWS manages encryption keys.
SSE-KMS: Uses AWS Key Management Service (KMS) for key control.
SSE-C: You manage your own encryption keys.
Client-Side Encryption: Encrypt data before uploading to S3.
AWS S3 Bucket Policies
What is it?
- A JSON-based policy that controls who can access the S3 bucket.
Example: Public Read Access Policy
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": "*", "Action": "s3:GetObject", "Resource": "arn:aws:s3:::your-bucket-name/*" } ] }AWS S3 Storage Classes
AWS S3 offers different storage classes to optimize cost:
S3 Standard: Frequent access.
S3 Intelligent-Tiering: Auto moves objects between access tiers.
S3 Standard-IA (Infrequent Access): Cheaper but charges retrieval fee.
S3 One Zone-IA: Lower cost, stored in a single AZ.
S3 Glacier & Glacier Deep Archive: Low-cost storage for long-term archival.
AWS S3 Logging & Monitoring
S3 Server Access Logging: Logs requests made to your bucket.
AWS CloudTrail: Tracks API calls to S3.
Amazon CloudWatch: Monitors S3 metrics (storage usage, request count, etc.).
Hosting a Static Website on AWS S3
Steps to Host a Static Website:
Upload your HTML, CSS, and JS files to an S3 bucket.
Go to Bucket Properties > Static Website Hosting > Enable.
Set the index document (e.g.,
index.html).Make files public using bucket policy.
Access your website using the S3-generated URL.
AWS Snow Family
What is it?
- A set of devices used to transfer large datasets to AWS physically.
Services:
AWS Snowball: Transfers TBs of data via a physical device.
AWS Snowmobile: A truck-sized solution for PB-scale data transfer.
AWS Storage Gateway
What is it?
- A hybrid cloud storage solution that connects on-premises applications to AWS storage services.
Types of Gateways:
File Gateway: Stores files in S3 with NFS/SMB support.
Volume Gateway: Manages iSCSI-based block storage.
Tape Gateway: Virtual tape storage for backups.
Linkedin: https://www.linkedin.com/in/khushi-dubey-6036a2305



