mysterious-hairdresser-82060
09/13/2024, 12:16 AMpulumi up
, it updates a resource that I have not made any changes to (it's a Docker Image resource). When I delete it from my Pulumi file so I can remove it and then build it again, when I run pulumi up
, I get the error: error: resource '{my resource urn}' registered twice (same and same)
. I double checked pulumi stack --show-urns
, and confirmed that the resource is unique. Does anyone have any tips to fix my state? Thanks!little-cartoon-10569
09/13/2024, 12:24 AMpulumi up
after you remove it from the code? Alternatively, you can skip the remove-from-code step, and just remove it from state via pulumi state delete
.little-cartoon-10569
09/13/2024, 12:27 AMmysterious-hairdresser-82060
09/13/2024, 3:27 PMDo you runIt did not work the last time I tried, but for some reason it worked just nowafter you remove it from the code?pulumi up
mysterious-hairdresser-82060
09/13/2024, 3:27 PMhallowed-photographer-31251
09/13/2024, 9:37 PMmysterious-hairdresser-82060
09/13/2024, 10:54 PMconst {myImage} = new docker.Image({...})
little-cartoon-10569
09/13/2024, 11:19 PMlittle-cartoon-10569
09/13/2024, 11:24 PM{myImage}
syntax? Isn't that destructuring? The Image class has no myImage member... 😕