This sounds like you're changing the Pulumi name (1st arg to constructor) at the same time as you're changing the content of the record. You shouldn't do this, as the Pulumi name property is what Pulumi uses to find the resource in the state.
little-cartoon-10569
02/24/2022, 9:17 PM
You can do it if you use aliases correctly, but generally, I recommend changing the record separately from changing the record's Pulumi name.
little-cartoon-10569
02/24/2022, 9:18 PM
It reduces the chance of confusion.
c
cool-glass-63014
02/25/2022, 8:39 AM
Okay, I'll try to see if this is it! Thank you very much for the insight :)
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.