๐Ÿงช Lab 6: Cloud Storage Management (AWS S3)

Course: CompTIA Cloud+ CV0-004
Objective: Learn to provision and manage cloud storage resources using AWS S3, configure access, and enable lifecycle policies.


๐ŸŽฏ Goals


๐Ÿชฃ Part 1: Create an S3 Bucket

  1. Navigate to S3 in the AWS Console
  2. Click Create bucket
  3. Bucket name: cloudplus-storage-lab
  4. Region: Same as EC2
  5. Uncheck Block all public access (if testing public access)
  6. Leave other defaults โ†’ Create bucket

โœ… Checkpoint: You now have an S3 bucket created.


๐Ÿ“ Part 2: Upload and Manage Files

  1. Click your bucket โ†’ Upload
  2. Add files or folders from your local machine
  3. Click Upload

To verify: - Click on uploaded object - Copy the Object URL - Paste in browser (if public access allowed)

โœ… Checkpoint: File successfully uploaded and viewable.


๐Ÿ” Part 3: Bucket Policies and Access Control

  1. Go to Permissions tab in your bucket
  2. Add a bucket policy like this (update your bucket name):
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "PublicReadGetObject",
      "Effect": "Allow",
      "Principal": "*",
      "Action": "s3:GetObject",
      "Resource": "arn:aws:s3:::cloudplus-storage-lab/*"
    }
  ]
}

โœ… Checkpoint: Your bucket is now publicly accessible for GET requests.


๐Ÿ”„ Part 4: Enable Versioning and Lifecycle

  1. Go to Properties tab
  2. Scroll to Bucket Versioning โ†’ Enable
  3. Go to Lifecycle Rules โ†’ Create rule
  4. Name: delete-old-versions
  5. Apply to all objects
  6. Add transition/delete rule: Delete previous versions after 30 days

โœ… Checkpoint: Your bucket has versioning and cleanup automation.


โœ… Lab Complete