-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(aws-backup): BackupResource has limited support for Aurora RDS #16457
Comments
I did the following: const clusterArn = `arn:aws:rds:${process.env.CDK_DEFAULT_REGION}:${process.env.CDK_DEFAULT_ACCOUNT}:cluster:${postgresRDSCluster.clusterIdentifier}`
// ...
plan.addSelection('BackupPlanSelection2', {
role: backupSelectionRole,
resources: [BackupResource.fromArn(clusterArn)],
}) I can see my cluster arn in plan selection, however I still do not see my cluster in the "Protected Resources"list. Did you pass the cluster arn, or the individual database server arns for it to show up in protected resources? |
I found this note in the documentation:
Did you wait until a backup should be created? |
…7971) Add methods `fromRdsDatabaseCluster` and `fromRdsServerlessCluster` to support RDS database cluster and serverless cluster in AWS Backup. In `BackupableResourcesCollector`, `CfnDBCluster` will be detected and added to the backup selection. Missing unit tests for `fromRdsDatabaseInstance` were added as well. Change behaviour of `CfnDBInstance` in `BackupableResourcesCollector`. Database instances will be added only if attribute `dbClusterIdentifier` is not set. In the current implementation, database instances of a database cluster will be added to the backup selection. In my point of view, it is not necessary to backup each database instance of a database cluster if the database cluster is selected. Please check if this change is correct and allowed. Closes #16457. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
BackupResource does not support RDS Aurora databases.
however the type IDatabaseInstance does not encompass Aurora databases. I believe additional methods are
needed to support these additional types:
Additionally,
BackupResource::fromConstruct()
ignores Aurora databases even though they are supported by AWS Backup.Use Case
There is no obvious way to backup Aurora databases from the CDK even though AWS Backup fully supports them.
The escape-hatch like
BackupResource::fromArn()
is an effective workaround.The text was updated successfully, but these errors were encountered: