Skip to content

(rds): ServerlessClusterProps is missing copyTagsToSnapshot #20968

@SydneyUni-Jim

Description

@SydneyUni-Jim

Describe the bug

DatabaseClusterProps.copyTagsToSnapshot exists but ServerlessClusterProps does not have this property.

The CloudFormation documentation does not suggest that this doesn't apply to Aurora Serverless.

Expected Behavior

This compiles

new rds.ServerlessCluster(scope, id, {
  copyTagsToSnapshot: true,
  engine: rds.DatabaseClusterEngine.auroraMysql({ version: rds.AuroraMysqlEngineVersion.VER_2_07_1 }),
  // …
})

and generates a CFT with

  DBCluster:
    Type: AWS::RDS::DBCluster
    Properties:
       CopyTagsToSnapshot: true
       Engine: aurora-mysql
       EngineMode: serverless
       EngineVersion: 5.7.mysql_aurora.2.07.1
       #

Current Behavior

A TypeScript error that ServerlessClusterProps does not have copyTagsToSnapshot.

Reproduction Steps

Try to copyTagsToSnapshot: true to the props when creating a rds.ServerlessCluster.

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.30.0 (build 1529743)

Framework Version

No response

Node.js Version

v14.19.3

OS

macOS 12.4 arm64

Language

Typescript

Language Version

TypeScript (4.7.4)

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-rdsRelated to Amazon Relational DatabasebugThis issue is a bug.effort/smallSmall work item – less than a day of effortp2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions