Triggers: executed on update even executeOnHandlerChange: false
#25939
Labels
@aws-cdk/triggers
Related to the triggers package
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p1
Describe the bug
Even if I set
executeOnHandlerChange: false
, the function gets executed on every deployment. This happens regardless of whether I just changedexecuteOnHandlerChange
tofalse
or if I first deployed with this flag, and then changed my function.It doesn't seems like this property is used anywhere within CDK.
Expected Behavior
The handler is invoked just once - when Stack is originally created. Alternatively, just remove the option so that it doesn't confuse.
Current Behavior
The handler is executed every time I run
cdk deploy
Reproduction Steps
Here's the CDK script:
Originally the function did nothing, just declared the handler. Then I changed it so that it throws an error to be sure that it's actually invoked (this made the deployment fail):
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.82.0
Framework Version
No response
Node.js Version
v18.16.0
OS
MacOS
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: