Open kpolley opened 1 week ago
Hi @kpolley, thank you for filing this issue.
Can you clarify whether this is about the pulumi-tls resources being re-created every pulumi up
, or GCP showing a constant diff on certificate
?
Hi @kpolley, thank you for filing this issue.
Can you clarify whether this is about the pulumi-tls resources being re-created every
pulumi up
, or GCP showing a constant diff oncertificate
?
Hi @guineveresaenger, sorry I may have made an incorrect assumption. It could be GCP showing a constant diff on certificate
which causes the issue.
Hi @kpolley - thank you for your reply.
I think I may be missing some context.
I'm running your code as supplied - and there's no permadiff for me:
I'm probably missing a detail here, perhaps you can clarify what's different on your end? Thank you!
Hi @kpolley - thank you for your reply.
I think I may be missing some context.
I'm running your code as supplied - and there's no permadiff for me:
Command line output I'm probably missing a detail here, perhaps you can clarify what's different on your end? Thank you!
That is very interesting! Perhaps it is our pulumi versions?
v3.127.0
3.12.4
pulumi-tls
: 5.0.6
pulumi-gcp
: 8.2.0
Hey @kpolley, I have also been unable to reproduce the issue. Can you please try upgrading your pulumi CLI and provider versions and see if the issue persists?
If it does, can you answer a few questions:
pulumi refresh
? If it does, you might be able to solve the issue by edittng your pulumi state manually to match the cloud state: https://www.pulumi.com/docs/iac/concepts/state-and-backends/#editing-state-manuallyThanks!
Describe what happened
We use
pulumi_tls
and to create a new certificate and add it to GCP via pulumi. Pulumi recreates the certificate everytime we runpulumi up
, despite no changes to the certificate or our stack. This causes the certificate to get deleted and recreated on every run, which is not ideal!Sample program
Log output
The 'replace' operations happens on every run, despite no changes being made.
Affected Resource(s)
No response
Output of
pulumi about
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).