Skip to main content

Command Palette

Search for a command to run...

AWS S3 (Simple Storage Service) -

Published
4 min read
AWS S3 (Simple Storage Service) -
K
👋 Hi, I'm Khushi Dubey, a passionate final year BCA student diving deep into the world of Cloud & DevOps. My journey is focused on the intersection of cloud technologies and cutting-edge DevOps methodologies to drive innovation and transformation. 🌍 Here’s a snapshot of who I am: 🚀 Aspiring Cloud/DevOps Professional: Passionate about streamlining processes, automating workflows, and optimizing cloud infrastructures. 💻 Tech Enthusiast: Constantly exploring new tools, trends, and techniques in cloud computing and DevOps engineering. 🎯 Problem-Solver: Dedicated to finding practical and scalable solutions to real-world challenges. ✍️ Lifelong Learner: Continuously improving my skill set to keep pace with evolving technologies and industry demands. 🌐 Collaborator: Believer in the power of teamwork and open knowledge sharing to build a thriving tech community. 📚 Follow my journey as I share insights, tutorials, and hands-on experiences from my Cloud and DevOps

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

  1. Go to AWS Management Console.

  2. Log in with your AWS credentials.

Step 2: Create an S3 Bucket

  1. In the AWS Console, search for S3 and open the service.

  2. Click Create bucket.

  3. Enter a unique bucket name (Bucket names are globally unique).

  4. Choose an AWS Region closest to your users.

  5. Configure Bucket settings (Versioning, encryption, etc.).

  6. Click Create bucket.

Step 3: Upload Files

  1. Open your bucket.

  2. Click Upload.

  3. Drag and drop files or browse to select them.

  4. Click Upload to store the files in S3.

Step 4: Set Permissions (Optional)

  1. Select the file.

  2. Click Permissions tab.

  3. 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:

    1. S3 Standard: Frequent access.

    2. S3 Intelligent-Tiering: Auto moves objects between access tiers.

    3. S3 Standard-IA (Infrequent Access): Cheaper but charges retrieval fee.

    4. S3 One Zone-IA: Lower cost, stored in a single AZ.

    5. 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:

    1. Upload your HTML, CSS, and JS files to an S3 bucket.

    2. Go to Bucket Properties > Static Website Hosting > Enable.

    3. Set the index document (e.g., index.html).

    4. Make files public using bucket policy.

    5. 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

Thank you!