Stack Singleton help #25166
Unanswered
RogerWilco80
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hey @RogerWilco80, If my understanding is correct, you only want one provider for all If so, then you're doing this right for the Provider, and you should only have one provider in your stack. However, you aren't implementing any You should either define these Lambda functions outside of this construct, or implement a similar |
Beta Was this translation helpful? Give feedback.
2 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.
-
Hi All,
I need some help making a
custom-resource.Provider
a singleton. I'm kinda beginner at CDK, and Python, so I don't 100% understand classes, constructs, and contexts.I've done what I think should work, but I don't think it is since it's still creating the
onEvent
lambda function three times (one for each resource I'm creating), and there aren't a lot of examples out there to reference.Thank you so much for your help.
Here's what I have so far:
and:
Beta Was this translation helpful? Give feedback.
All reactions