Cross-region AWS Backup using CDK

0

Hi,

I'm creating a backup plan using CDK and would like to also copy the resources to another region, pretty much as it's documented here for the AWS Console.

I couldn't find a "copy to destination" option in CDK or Cfn resources though. Is that option not supported?

질문됨 2년 전1432회 조회
2개 답변
0

Hello Customer, In order to reproduce the same functionality as the AWS backup through the use of CDKs, you can utilize the S3.CfnBucket Construct to create S3 Cross Region Replication. This document can help you get started on it: https://docs.aws.amazon.com/cdk/api/v1/python/aws_cdk.aws_s3/CfnBucket.html#replicationconfigurationproperty

Hope this Helps!

답변함 2년 전
AWS
지원 엔지니어
검토됨 2년 전
0

Copy option is supported in CDK and CFN.

CDK:https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_backup-readme.html

Rules can also specify to copy recovery points to another Backup Vault using copyActions. Copied recovery points can optionally have moveToColdStorageAfter and deleteAfter configured.

declare const plan: backup.BackupPlan; declare const secondaryVault: backup.BackupVault; plan.addRule(new backup.BackupPlanRule({ copyActions: [{ destinationBackupVault: secondaryVault, moveToColdStorageAfter: Duration.days(30), deleteAfter: Duration.days(120), }] }));

For CFN:https://aws.amazon.com/premiumsupport/knowledge-center/aws-backup-cloudformation-template/

DestinationBackupVaultArn: arn:aws:backup:us-west-2:111222333444:backup-vault:Default Lifecycle: DeleteAfterDays: 14

AWS
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인