When running the aws cli command:
aws rds copy-db-cluster-snapshot \
--source-db-cluster-snapshot-identifier arn:aws:rds:ap-east-1:<account-id>:cluster-snapshot:rds:<cluster-identifier>-2022-09-19-11-18 \
--target-db-cluster-snapshot-identifier hk-2022-09-19 \
--source-region ap-east-1 \
--region eu-west-1
The following is thrown:
An error occurred (InvalidParameterValue) when calling the CopyDBClusterSnapshot operation: Cross region operations are not supported between ap-northeast-2 and ap-east-1 regions
Also tried:
aws rds create-db-instance-read-replica \
--db-instance-identifier "my-readonly-replica" \
--source-db-instance-identifier "arn:aws:rds:ap-east-1:<account-id>:db:<instance-id>" \
--source-region ap-east-1 \
--region us-west-1
To no avail. with following error:
An error occurred (InvalidDBInstanceState) when calling the CreateDBInstanceReadReplica operation: Cross-Region Read Replicas are not supported for the provided source DB Instance engine version. Please upgrade to a supported engine version and try again.
The db is of an Aurora PostgreSQL:14.3 cluster. What are my options? How can I transfer a snapshot from an ap-east-1
region to anywhere else (in the management console ui when copy is selected in the actions of the snapshot, only region can be copied is the same region)?
Any way more performant than
- create & connect to an ec2 instance
- connect to the db
- use pgsql commands to get db dump
- compress the dump file
- upload to s3
- create an empty db in the target region
- create & connect to an ec2 instance in the target region
- download the s3 uploaded db dump
- decompress the file
- run the dump against the db server in the target region
- take snapshot of the db cluster in the target region
?