@aws-cdk: cdk import always reports pending changes with lambda function w/alias #31677
Labels
@aws-cdk/aws-lambda
Related to AWS Lambda
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p2
package/tools
Related to AWS CDK Tools or CLI
Describe the bug
When using a Lambda NodeJsFunction with an alias and a function url attached to it,
cdk import
always reports pending changes even when no changes exist.Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
Running
cdk import
when there are no changes to your lambda function should report no pending changes that need to be resolved on existing resources.Current Behavior
Running
cdk deploy
thencdk import
always reports resource updates, when no resources are updated.Reproduction Steps
Deploy this stack with
cdk deploy
Run
cdk import
The cdk template is located here
Possible Solution
Using
cdk import --force
works, but shouldn't be necessary.Additional Information/Context
No response
CDK CLI Version
2.160.0 (build 7a8ae02)
Framework Version
2.160.0
Node.js Version
20.13.1
OS
MacOS Sonoma 14.6.1
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: