You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pulumi about
CLI
Version 3.54.0
Go Version go1.19.5
Go Compiler gc
Host
OS nixos
Version 22.11 (Raccoon)
Arch x86_64
Additional context
We implemented a workaround with deleteBeforeReplace: true, causing Grants to be deleted then recreated (so actually deleted for a few seconds, which is better than permanently)
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).
The text was updated successfully, but these errors were encountered:
@PierreBeucher Thanks for flagging this! We can override the TF provider's behavior here to delete before replacing. It looks like there are two bugs though; the constant diff & the order of operations.
What happened?
Pulumi shows a constant diff for Grant resources. This is likely an issue already documented on Terraform provider: cyrilgdn/terraform-provider-postgresql#303
However, as Pulumi default behaviour is to create THEN delete, it ends-up deleting Grant altogether:
End result: Grant is deleted
Expected Behavior
Pulumi detects diff normally. Grant is not deleted.
Steps to reproduce
Create a Grant like:
Up a first time: Grant is created OK
Up a second time: Pulumi shows diff, deleting original Grant
Pulumi (automation API) shows output like this, clearly indicating deletion at the end:
Output of
pulumi about
Additional context
We implemented a workaround with
deleteBeforeReplace: true
, causing Grants to be deleted then recreated (so actually deleted for a few seconds, which is better than permanently)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).
The text was updated successfully, but these errors were encountered: