Hi, I need to get the name of a resource in Pulumi...
# general
a
Hi, I need to get the name of a resource in Pulumi, in order to generate another resource name based on it. I figure I can also get this from the URN, but I can't find a way to get the name or the URN. Any help would be appreciated, thanks.
Answering myself,
resource.urn
works, but it can't be used as the resource name of another resource, since it's an Output and resource names require strings.
... but I can use a get function to get the resource attributes as a string, which works for me
b
Does the resource not have a name property you can use?