https://pulumi.com logo
#general
Title
# general
a

adorable-gpu-98268

03/20/2022, 1:25 PM
@billions-glass-17089 Sorry, didn’t recognise you just asked the same question 🙂
b

billions-glass-17089

03/20/2022, 1:25 PM
no actually the one above is different than yours
I just so happen to have this same issue
@adorable-gpu-98268 looks like someone found an answer: https://pulumi-community.slack.com/archives/CJ909TL6P/p1641009039304700
a

adorable-gpu-98268

03/20/2022, 1:30 PM
Ah, that’s helpful, thanks!
👍 1
So, I tried it this way and it doesn’t actually work, the
name
is then the long string passed there and the
type
still is
pulumi-nodejs:dynamic:Resource
😞 1
e

echoing-dinner-19531

03/20/2022, 5:26 PM
You can't change the type. Similarly to ComponentResources you need to ensure that resource names are globaly unique across your whole program.
b

billions-glass-17089

03/20/2022, 10:02 PM
huh this is similar to what I asked in this discussion: https://github.com/pulumi/pulumi/discussions/9250 TLDR, you can accomplish name spacing by passing the
name
as the
type
of the component resource
3 Views