in the json state file. If I make them congruent, Pulumi doesn’t want to replace this resource anymore. I am not sure what broke these
name
in the state. Could have been updates to Pulumi and GCP provider. 🤷🏻♀️
l
little-cartoon-10569
05/16/2023, 8:56 PM
As you figured out,
name
is the reason that the replacement was suggested. To answer your original question: if an attribute changes in your preview, and if that attribute has the recycle icon in the registry docs, then a replace is required.
For example, in this case, the docs are here: https://www.pulumi.com/registry/packages/gcp/api-docs/compute/address/#properties
And
name
has the recycle icon:
b
bland-dog-47600
05/16/2023, 10:54 PM
@little-cartoon-10569 The thing is the
name
didn’t change in GCP. For some reasons they regenerated in
inputs
of the state.
l
little-cartoon-10569
05/16/2023, 10:56 PM
Yes, I can't answer that part. It has happened to me in the past too. Generally,
pulumi refresh
eventually fixes it, but the effort involved is significant. I generally associate this with changing providers, but I have no proof.
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.