Is it possible to conditionally create resources? ...
# general
p
Is it possible to conditionally create resources?
Copy code
if <condition>: 
    my_lambda = aws.lambda_.Function(...)
When I tried this, the if statements seem to be ignored. I'm trying to create or ignore resources based on the current pulumi stack
b
Super duper basic example, but here is where I use typescript to run a config variable if conditional on creating a helm release resource.
😍 2
p
I must have been brain dead on the day I tried this before. Thanks
b
No worries! Glad it helps 🙂