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
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
- Create a stack with ECS Fargate container and a RDS Database inside.
- Change something in the Dockerfile for the container
- 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
Describe the bug
cdk deploy --hotswapis 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
Last Known Working CDK Library Version
No response
Expected Behavior
Container running with new image after the
--hotswapdeployment.RDS Database should be ignored and not touched
Current Behavior
Image was build and uploaded.
cdk deploy --hotswapfinishes with errors.Old container images are still running (no new deployments)
Reproduction Steps
cdk deploy --hotswapPossible 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