hi all I am getting this error in Pulumi: error: ...
# getting-started
w
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
It's in your code. Are you creating something in a loop?
w
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
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
fixed! you were right. it was the logic in my loop, whcih reads from a csv. 🙂