Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

aws_rds: (regression) Deprecation warning when using rds.DatabaseCluster #37407

Copy link
Copy link

Description

@vsabella
Issue body actions

Describe the bug

since 2.245, there is now a regression when using the basic tutorial for new rds.DatabaseCluster(this, 'Cluster', {}...

toCloudFormation is enumerating over deprecated properties, causing a warning every time we synth.

While synthesizing MyStage/Database/Aurora/Cluster/writer/Resource: aws-cdk-lib.aws_rds.CfnDBInstance#tdeCredentialArn is deprecated.
  this property has been deprecated
  This API will be removed in the next major release.
  --- resource created at ---
  --- problem discovered at ---
    at get cfnProperties (/Users/myuser/dev-ghec/axsp-aws/node_modules/.pnpm/aws-cdk-lib@2.245.0_constructs@10.6.0/node_modules/aws-cdk-lib/aws-rds/lib/rds.generated.js:1:109101)
    at CfnDBInstance._toCloudFormation (/Users/myuser/dev-ghec/axsp-aws/node_modules/.pnpm/aws-cdk-lib@2.245.0_constructs@10.6.0/node_modules/aws-cdk-lib/core/lib/cfn-resource.js:1:7641)
    at /Users/myuser/dev-ghec/axsp-aws/node_modules/.pnpm/aws-cdk-lib@2.245.0_constructs@10.6.0/node_modules/aws-cdk-lib/core/lib/private/refs.js:1:5150
    at findTokens (/Users/myuser/dev-ghec/axsp-aws/node_modules/.pnpm/aws-cdk-lib@2.245.0_constructs@10.6.0/node_modules/aws-cdk-lib/core/lib/private/resolve.js:1:4214)
    at findAllReferences (/Users/myuser/dev-ghec/axsp-aws/node_modules/.pnpm/aws-cdk-lib@2.245.0_constructs@10.6.0/node_modules/aws-cdk-lib/core/lib/private/refs.js:1:5127)
    at resolveReferences (/Users/myuser/dev-ghec/axsp-aws/node_modules/.pnpm/aws-cdk-lib@2.245.0_constructs@10.6.0/node_modules/aws-cdk-lib/core/lib/private/refs.js:1:1666)
    at prepareApp (/Users/myuser/dev-ghec/axsp-aws/node_modules/.pnpm/aws-cdk-lib@2.245.0_constructs@10.6.0/node_modules/aws-cdk-lib/core/lib/private/prepare-app.js:1:928)
    at synthesize (/Users/myuser/dev-ghec/axsp-aws/node_modules/.pnpm/aws-cdk-lib@2.245.0_constructs@10.6.0/node_modules/aws-cdk-lib/core/lib/private/synthesis.js:1:1997)
    at AppsStage.synth (/Users/myuser/dev-ghec/axsp-aws/node_modules/.pnpm/aws-cdk-lib@2.245.0_constructs@10.6.0/node_modules/aws-cdk-lib/core/lib/stage.js:1:3157)
    at synthNestedAssemblies (/Users/myuser/dev-ghec/axsp-aws/node_modules/.pnpm/aws-cdk-lib@2.245.0_constructs@10.6.0/node_modules/aws-cdk-lib/core/lib/private/synthesis.js:2:2083) {
  name: 'DeprecationError'

Regression Issue

  • Select this option if this issue appears to be a regression.

Last Known Working CDK Library Version

No response

Expected Behavior

It should not throw warnings

Current Behavior

While synthesizing MyStage/Database/Aurora/Cluster/writer/Resource: aws-cdk-lib.aws_rds.CfnDBInstance#tdeCredentialArn is deprecated.
  this property has been deprecated
  This API will be removed in the next major release.
  --- resource created at ---
  --- problem discovered at ---
    at get cfnProperties (/Users/myuser/dev-ghec/axsp-aws/node_modules/.pnpm/aws-cdk-lib@2.245.0_constructs@10.6.0/node_modules/aws-cdk-lib/aws-rds/lib/rds.generated.js:1:109101)
    at CfnDBInstance._toCloudFormation (/Users/myuser/dev-ghec/axsp-aws/node_modules/.pnpm/aws-cdk-lib@2.245.0_constructs@10.6.0/node_modules/aws-cdk-lib/core/lib/cfn-resource.js:1:7641)
    at /Users/myuser/dev-ghec/axsp-aws/node_modules/.pnpm/aws-cdk-lib@2.245.0_constructs@10.6.0/node_modules/aws-cdk-lib/core/lib/private/refs.js:1:5150
    at findTokens (/Users/myuser/dev-ghec/axsp-aws/node_modules/.pnpm/aws-cdk-lib@2.245.0_constructs@10.6.0/node_modules/aws-cdk-lib/core/lib/private/resolve.js:1:4214)
    at findAllReferences (/Users/myuser/dev-ghec/axsp-aws/node_modules/.pnpm/aws-cdk-lib@2.245.0_constructs@10.6.0/node_modules/aws-cdk-lib/core/lib/private/refs.js:1:5127)
    at resolveReferences (/Users/myuser/dev-ghec/axsp-aws/node_modules/.pnpm/aws-cdk-lib@2.245.0_constructs@10.6.0/node_modules/aws-cdk-lib/core/lib/private/refs.js:1:1666)
    at prepareApp (/Users/myuser/dev-ghec/axsp-aws/node_modules/.pnpm/aws-cdk-lib@2.245.0_constructs@10.6.0/node_modules/aws-cdk-lib/core/lib/private/prepare-app.js:1:928)
    at synthesize (/Users/myuser/dev-ghec/axsp-aws/node_modules/.pnpm/aws-cdk-lib@2.245.0_constructs@10.6.0/node_modules/aws-cdk-lib/core/lib/private/synthesis.js:1:1997)
    at AppsStage.synth (/Users/myuser/dev-ghec/axsp-aws/node_modules/.pnpm/aws-cdk-lib@2.245.0_constructs@10.6.0/node_modules/aws-cdk-lib/core/lib/stage.js:1:3157)
    at synthNestedAssemblies (/Users/myuser/dev-ghec/axsp-aws/node_modules/.pnpm/aws-cdk-lib@2.245.0_constructs@10.6.0/node_modules/aws-cdk-lib/core/lib/private/synthesis.js:2:2083) {
  name: 'DeprecationError'

Reproduction Steps

Create an RDS serverless construct just following basic tutorials:
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_rds-readme.html

Possible Solution

No response

Additional Information/Context

No response

AWS CDK Library version (aws-cdk-lib)

aws-cdk-lib@2.245.0

AWS CDK CLI version

2.1114.1 (build 9fa6132)

Node.js Version

v24.13.1

OS

Darwin (MacOS)

Language

TypeScript

Language Version

No response

Other information

No response

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/coreRelated to core CDK functionalityRelated to core CDK functionalitybugThis issue is a bug.This issue is a bug.p0

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.