aws / aws/aws-cdk-cli

(hotswap): CLI --hotswap fails with RDS Databases in the stack

Open
#1,435 2 comments 0 reactions 0 assignees View on GitHub
bug effort/medium
Dominant language
TypeScript
Stars
105
Forks
122
Avg merge
1d 17h
Merged PRs (30d)
71

Description

### 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.