๐งช 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
- Create and configure an S3 bucket
- Upload and manage files
- Set up access policies
- Enable versioning and lifecycle rules
๐ชฃ Part 1: Create an S3 Bucket
- Navigate to S3 in the AWS Console
- Click Create bucket
- Bucket name:
cloudplus-storage-lab
- Region: Same as EC2
- Uncheck Block all public access (if testing public access)
- Leave other defaults โ Create bucket
โ
Checkpoint: You now have an S3 bucket created.
๐ Part 2: Upload and Manage Files
- Click your bucket โ Upload
- Add files or folders from your local machine
- 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
- Go to Permissions tab in your bucket
- 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
- Go to Properties tab
- Scroll to Bucket Versioning โ Enable
- Go to Lifecycle Rules โ Create rule
- Name:
delete-old-versions
- Apply to all objects
- Add transition/delete rule: Delete previous versions after 30 days
โ
Checkpoint: Your bucket has versioning and cleanup automation.
โ
Lab Complete