How does pulumi discover resources? For instance, ...
# getting-started
i
How does pulumi discover resources? For instance, if I have variable
deployment = [kubernetes.Deployment(), kubernetes.Deployment()]
will Pulumi deploy both of the deployments? Do I even need to specify a variable? Will
Deployment()
work?
b
Pulumi doesn't discover resources> it's declerative. So whatever you define in your will end up happening. If you define two
kubernetes.Deployment()
resources they will both be created
you don't need to specify a variable, but it's useful if you want to reference an output in another resource
i
Ok awesome. Thanks for the explanation!