Lab 06 - Replication
Difficulty: Intermediate Service: Amazon S3
Scenario
Your team set up S3 replication to automatically copy objects from a source bucket to a destination bucket for backup purposes. The stack deployed without errors — but after uploading files to the source bucket, nothing is showing up in the destination.
What Was Deployed
| Resource | Purpose |
|---|---|
AWS::S3::Bucket |
Source bucket — files uploaded here should be replicated |
AWS::S3::Bucket |
Destination bucket — should receive replicated objects |
AWS::IAM::Role |
IAM role granting S3 permission to perform replication |
The stack deployed without errors.
Deploy the Lab
- Open the AWS CloudFormation console
- Click Create stack > With new resources (standard)
- Select Upload a template file and upload lab-06-replication.yaml
- Enter a stack name (e.g.,
brokenlabs-lab-06) and click Next > Next > Submit - Wait for the stack status to reach CREATE_COMPLETE
- Open the stack Outputs tab — you will see
SourceBucketNameandDestinationBucketName
The Problem
Open both buckets in the S3 console.
Source bucket: contains index.html
Destination bucket: empty — index.html has not been replicated
Fix the Lab
Diagnose why objects are not being replicated and fix it.
To verify the fix:
- Upload any file to the source bucket
- Wait a few seconds, then check the destination bucket
- The file should appear in the destination
Need help? Open hints for progressive hints.
Cleanup
- Open CloudFormation, select your stack, and click Delete