https://pulumi.com logo
Title
a

ancient-eve-13947

08/18/2021, 1:04 PM
if the name that I need to pass into
kubernetes.apps.v1.Deployment
comes from an
Output<string>
, how can I do that? it only accepts a
string
, not an
Output<string>
. I found this, but am unclear how to use it.
l

little-cartoon-10569

08/18/2021, 9:26 PM
Which name? The Pulumi name (first parameter)? That parameter does not come from an Output<string>.
Values that go in args can be outputs. The name of a resource should never be an output. It's just like a variable: you need to know its name at compile time otherwise you can't use it.
Theoretically you could create the resource inside an
apply()
, but don't do that. You never need to (in my experience), and there are significant downsides.