CloudPath Academy

Your guide to AWS certification success

Amazon Web Services AWS Broken Labs

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

  1. Open the AWS CloudFormation console
  2. Click Create stack > With new resources (standard)
  3. Select Upload a template file and upload lab-06-replication.yaml
  4. Enter a stack name (e.g., brokenlabs-lab-06) and click Next > Next > Submit
  5. Wait for the stack status to reach CREATE_COMPLETE
  6. Open the stack Outputs tab — you will see SourceBucketName and DestinationBucketName

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:

  1. Upload any file to the source bucket
  2. Wait a few seconds, then check the destination bucket
  3. The file should appear in the destination

Need help? Open hints for progressive hints.

Cleanup

  1. Open CloudFormation, select your stack, and click Delete

Resources