Skip to content

(aws-tools): CLI --hotswap fails with RDS Databases in the stack #36145

@rickstaroO

Description

@rickstaroO

Describe the bug

cdk deploy --hotswap is not working when an RDS Database is part of the stack.

Following message occurs in the output:
Could not perform a hotswap deployment, because the CloudFormation template could not be resolved: We don't support attributes of the 'AWS::RDS::DBInstance' resource.

Note: there are no changes to the database inside of the cdk code used. Only the container image was changed.

Regression Issue

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

Last Known Working CDK Library Version

No response

Expected Behavior

Container running with new image after the --hotswap deployment.
RDS Database should be ignored and not touched

Current Behavior

Image was build and uploaded.
cdk deploy --hotswap finishes with errors.
Old container images are still running (no new deployments)

Reproduction Steps

  1. Create a stack with ECS Fargate container and a RDS Database inside.
  2. Change something in the Dockerfile for the container
  3. Run cdk deploy --hotswap

Possible Solution

No response

Additional Information/Context

No response

AWS CDK Library version (aws-cdk-lib)

2.223.0

AWS CDK CLI version

2.1032.0

Node.js Version

20.18.3

OS

RHEL 9.4

Language

TypeScript

Language Version

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.needs-triageThis issue or PR still needs to be triaged.package/toolsRelated to AWS CDK Tools or CLI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions