To set up S3 bucket replication, follow these steps:
Log in to your AWS Management Console.
Navigate to the S3 service.
Select the bucket you want to replicate.
Click on the "Management" tab and then select "Replication."
Click on "Add rule" to create a new replication rule.
Choose the source bucket from the dropdown menu.
Configure the destination bucket by selecting an existing bucket or creating a new one.
Choose the replication options, such as the storage class and encryption settings.
Configure the replication rules, including filters, prefix, and destinations.
Review and save the replication rule.
Enable versioning on both the source and destination buckets.
Monitor the replication status in the S3 Management Console to ensure that it is working correctly.
By following these steps, you can set up S3 bucket replication to replicate data between two buckets in different AWS regions for redundancy and disaster recovery purposes.