-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Open
Labels
bugThis issue is a bug.This issue is a bug.needs-triageThis issue or PR still needs to be triaged.This issue or PR still needs to be triaged.package/toolsRelated to AWS CDK Tools or CLIRelated to AWS CDK Tools or CLI
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
- 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
Metadata
Metadata
Assignees
Labels
bugThis issue is a bug.This issue is a bug.needs-triageThis issue or PR still needs to be triaged.This issue or PR still needs to be triaged.package/toolsRelated to AWS CDK Tools or CLIRelated to AWS CDK Tools or CLI