sparse-intern-71089
08/03/2022, 1:13 AMsteep-toddler-94095
08/03/2022, 2:07 AMstrong-helmet-83704
08/04/2022, 10:27 PMsteep-toddler-94095
08/04/2022, 10:29 PMdependsOn
property https://www.pulumi.com/docs/intro/concepts/resources/options/dependson/strong-helmet-83704
08/04/2022, 10:29 PMstrong-helmet-83704
08/04/2022, 10:45 PMdelete_before_replace=True
strong-helmet-83704
08/04/2022, 11:15 PMsteep-toddler-94095
08/04/2022, 11:22 PMstrong-helmet-83704
08/04/2022, 11:43 PMstrong-helmet-83704
08/04/2022, 11:47 PMopts=pulumi.ResourceOptions(delete_before_replace=True, provider=provider_options)
on the natgw (which binds to an eip) but a rename operation still fails. It still tries to create the natgw before deleting the old one. (all creates are listed before the deletes)steep-toddler-94095
08/04/2022, 11:54 PMdelete_before_replace
parameter handles that case. It's meant for cases where the Pulumi URN stays the same, but you are trying to change an immutable property of the resource, which the cloud provider requires that it be recreated.
If you are trying to rename the Pulumi resource without changing the cloud resource, you should use the alias property for this.strong-helmet-83704
08/05/2022, 12:08 AMretain_on_delete=True
will maintain the natgw with the eip attached… ?strong-helmet-83704
08/05/2022, 12:09 AM“retainOnDelete”: true
specified in the state, but delete_before_replace was notsteep-toddler-94095
08/05/2022, 12:17 AM