(aws_rds): Default value of deleteAutomatedBackups of DBInstance is mismatched from the Cfn and CDK Readme documentation #27973
Labels
documentation
This is a problem with documentation.
effort/small
Small work item – less than a day of effort
p2
Describe the issue
Issue created for the SIM -14222059591
The customer has noticed that there is a discrepancy between the documentation for RDS DB Instances in CDK and CFN resulting in what appears to be unexpected behavior with this resource in regards to the deleteAutomatedBackups property for this resource. It appears that the documentation for this property in CDK is not correct.
In the CDK docs, this property is described as the following:
deleteAutomatedBackups?
Type: boolean (optional, default: false)
Indicates whether automated backups should be deleted or retained when you delete a DB instance.
And in the CFN docs for this property of the AWS::RDS::DBInstance resource, it says this:
Therefore, as stated in the documentation for this property, the default behavior for this property when not defined is:
In this case the customer had not defined this property in their CDK stack, and then when they deleted the stack saw that the backups were deleted, which was unexpected as per the CDK docs.
Links
Default value for deleteAutomatedBackups for DBInstance as per CFN docs - https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-deleteautomatedbackups
As mentioned in CDK Documentation - https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_rds.DatabaseInstance.html#deleteautomatedbackups
As mentioned in CDK Code readme -https://github.com/aws/aws-cdk/blob/9d17fe2414b72595802ff94057af5a7efe711268/packages/aws-cdk-lib/aws-rds/lib/props.ts#L96C1-L96C1
The text was updated successfully, but these errors were encountered: