Skip to content

Commit

Permalink
chore(core): add doc db cluster as supported snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinZZ committed Jan 25, 2024
1 parent 7a30f5d commit a626671
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/aws-cdk-lib/core/lib/cfn-resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ export class CfnResource extends CfnRefElement {
case RemovalPolicy.SNAPSHOT:
// https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html
const snapshottableResourceTypes = [
'AWS::DocDB::DBCluster',
'AWS::EC2::Volume',
'AWS::ElastiCache::CacheCluster',
'AWS::ElastiCache::ReplicationGroup',
Expand Down
1 change: 1 addition & 0 deletions packages/aws-cdk-lib/core/test/cfn-resource.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ describe('cfn resource', () => {
'AWS::RDS::DBCluster',
'AWS::RDS::DBInstance',
'AWS::Redshift::Cluster',
'AWS::DocDB::DBCluster',
];

test.each(supportedResources) (
Expand Down

0 comments on commit a626671

Please sign in to comment.