if the name that I need to pass into `kubernetes.a...
# typescript
a
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
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.