https://pulumi.com logo
Title
a

astonishing-gpu-28317

07/19/2021, 7:23 PM
hey folks, looking for a little help here. i have a new stack and i always get this error when i run
pulumi up
, regardless of what i rename my stack to:
error: Duplicate resource URN '<name>'; try giving it a unique name
for what it’s worth: using the go client
at one point we had tested out the typescript client and wanted to switch. we deleted the typescript stack and created a new go stack, and had named the go stack the same name as the typescript stack.
i think that could be part of the issue but i’m not certain, and i dont know how to proceed
p

prehistoric-activity-61023

07/19/2021, 7:28 PM
I’m pretty sure it’s the error in your code. Make sure you didn’t declare 2 (or more) resources of the same type with the name from the error.
maybe there’s a for loop and it worked when it only got one resource but it stopped working once you added more (cause now it generated multiple resources with
name
but it should add some prefix e.g.
name-0
,
name-1
etc.)
a

astonishing-gpu-28317

07/19/2021, 7:48 PM
yup, this was the issue, thanks!