Creating a lambda-backed custom resource in .NET CDK #22946
IgorPietraszko
started this conversation in
General
Replies: 1 comment
-
Custom resources (and any resource, in general) are not informed of UPDATE events unless they or a child/other dependency has changed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following code that creates my lambda function, a provider and a custom resource.
Lambda function code is based on a custom construct so just providing it for reference:
then I create a provider:
and lastly a custom resource:
Now my function executed the first time I installed it and the related custom resource (CREATE EVENT). But, it is not invoked on subsequent events (UPDATE). Now my function has the same behaviour for CREATE and UPDATE and does nothing on DELETE but it does not even register as executing in Lambda CloudWatch after the initial install/create and I don't know why.
Beta Was this translation helpful? Give feedback.
All reactions