This template creates an S3 bucket and grants it permission to write to a replication bucket (example-destination-bucket) by using an IAM role. The bucket depends on the `ReplicationIamRole` role.

CloudFormation Template