Lab 06 - S3 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 replication rule is in place and the stack deployed without errors — but after uploading files to the source bucket, nothing is showing up in the destination. Figure out why replication isn’t working and fix it.
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. The replication rule is configured on the source bucket. The destination bucket exists and is ready to receive objects.
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
The replication rule is configured and the IAM role exists. But objects are not being copied to the destination.
Fix the Lab
Investigate the replication configuration and determine why objects are not being replicated.
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