tall-library-51128
05/14/2024, 11:44 AMdeleteBeforeReplace
because the renaming action results in a new resource to be created)
Thanks!little-cartoon-10569
05/14/2024, 7:45 PMtall-library-51128
05/15/2024, 7:48 AMlittle-cartoon-10569
05/15/2024, 7:59 AMpulumi up
, then uncommenting and repeating. Neither is good.
The alternative is to not rename the resource, and just change the values. This may result in a badly-named resource.
This is an unfortunate side effect of having managed resources that do not have their own cloud ID. It is on you to ensure that the Pulumi name does not change, or does change, depending on your particular use case.
Security group rules are not the only resource with this problem. NACL rules are very similar. And they're slightly worse, because it looks like they have an ID (the rule number), but in fact they don't, the number is just another property.
You may find you simply have to delete some things manually this time, in order to fix the naming so that it will never be needed in the future. That was what I had to do.. more than once.tall-library-51128
05/15/2024, 8:01 AMlittle-cartoon-10569
05/15/2024, 8:03 AMenough-garden-22763
05/20/2024, 3:57 PMenough-garden-22763
05/20/2024, 3:58 PMlittle-cartoon-10569
05/20/2024, 8:35 PMenough-garden-22763
05/20/2024, 8:39 PMenough-garden-22763
05/20/2024, 8:40 PMlittle-cartoon-10569
05/20/2024, 8:44 PMpulumi up
, then swap the rule numbers of the two rules and pulumi up
. This exposes the bug. (It's not a Pulumi bug, it would have been a bug in the code that created the rules in a loop).