Which solution will meet these requirements?
Configure AWS Elastic Disaster Recovery to replicate the CodeCommit repository data to the second Region.
Use AWS Backup to back up the CodeCommit repository on an hourly schedule. Create a cross-Region copy in the second Region.
Create an Amazon EventBridge rule to invoke AWS CodeBuild when the company pushes code to the repository. Use CodeBuild to clone the repository. Create a .zip file of the content. Copy the file to an S3 bucket in the second Region.
Create an AWS Step Functions workflow on an hourly schedule to take a snapshot of the CodeCommit repository. Configure the workflow to copy the snapshot to an S3 bucket in the second Region
Explanations:
AWS Elastic Disaster Recovery is not designed for replicating AWS CodeCommit repositories. It is primarily used for disaster recovery of EC2 instances and their associated resources, not for version control systems like CodeCommit.
AWS Backup does not support AWS CodeCommit directly. While AWS Backup can manage backups for many AWS services, it currently does not have built-in functionality for backing up CodeCommit repositories.
This option provides a valid solution by leveraging AWS CodeBuild to clone the repository whenever code is pushed. The repository’s content can be zipped and then copied to an S3 bucket in the second Region, ensuring a backup is created in a different region.
AWS Step Functions do not have the capability to take snapshots of CodeCommit repositories. They are better suited for orchestrating workflows, but they cannot directly handle repository data without custom actions, and CodeCommit does not support snapshots like EBS does.