https://pulumi.com logo
w

witty-vegetable-61961

07/22/2022, 1:31 PM
hi all I am getting this error in Pulumi: error: Duplicate resource URN 'urnpulumidev:KillerGaming.Pulumi.AuthZeroauth0index/clientClient:KillerGaming Server Automation API HealthUI'; try giving it a unique name However, I have deleted everything I created and made a new stack, which is empty. How can I fix this error?
b

billowy-army-68599

07/22/2022, 1:33 PM
It's in your code. Are you creating something in a loop?
w

witty-vegetable-61961

07/22/2022, 1:36 PM
i am and thats intentional. but everything has a unique name. I will check the code, but isn't this error becxause of something in my state I could just clear out?
b

billowy-army-68599

07/22/2022, 1:39 PM
no, it’s trying to add something to state with a name that already exists when it builds the dependency graph. if you’re building something in a loop, add the index of the loop to the end of each resource
w

witty-vegetable-61961

07/22/2022, 1:47 PM
fixed! you were right. it was the logic in my loop, whcih reads from a csv. 🙂
18 Views