This tool facilitates the creation of cross-region snapshots for RDS and EBS volumes while ensuring KMS encryption.
Cross-region snapshots for RDS and EBS using KMS encryption
The primary use case for this tool is to enable AWS users to create encrypted snapshots of their RDS and EBS volumes across different regions. This is particularly useful for backup and disaster recovery scenarios, allowing users to maintain data integrity and security in a multi-region setup.
Ensure that you have the necessary AWS permissions and KMS keys configured in both the primary and secondary regions before using this tool.
Run 'terraform init' to initialize the Terraform configuration.
Run 'terraform apply -auto-approve' to create the initial snapshot.
terraform init
Initializes the Terraform configuration for the project.
terraform apply -auto-approve
Applies the Terraform configuration to create the necessary resources.
aws ec2 copy-snapshot --region sa-east-1 --source-region us-east-2 --source-snapshot-id snap-00000000000000000 --encrypted --kms-key-id '000000000000000000000000000000000000'
Copies an existing snapshot to a secondary region while ensuring it is encrypted with the specified KMS key.