little-cartoon-10569
10/05/2023, 7:58 PMpulumi up
with the code that changes the TG's name, the Service is delete-recreated, then the TG is deleted. and that fails because the (new) Service is using the TG.
What is needed to ensure that Pulumi doesn't attempt to recreate the Service until after the TG has been delete-recreated?pulumi preview
, presumably because the TG is changing: maybe this is confusing Pulumi, and the necessary update is somehow overwriting the necessary delete-replace?pulumi up
, change the name on line 12, then run pulumi up
again.
You'll get this sort of error:
error deleting Target Group: ResourceInUse: Target group 'arn:aws:elasticloadbalancing:region:account:targetgroup/default/id' is currently in use by a listener or a rule
+- ├─ aws:alb:TargetGroup default replace [diff: ~name]
~ ├─ aws:alb:Listener listener update [diff: ~defaultActions]
~ └─ aws:alb:ListenerRule rule update [diff: ~actions]
But it needs to delete-replace the ListenerRule.billowy-army-68599
little-cartoon-10569
10/05/2023, 11:43 PMbillowy-army-68599
little-cartoon-10569
10/05/2023, 11:51 PMbillowy-army-68599
little-cartoon-10569
10/05/2023, 11:56 PMbillowy-army-68599
little-cartoon-10569
10/05/2023, 11:58 PMbillowy-army-68599
little-cartoon-10569
10/05/2023, 11:58 PMbillowy-army-68599
little-cartoon-10569
10/06/2023, 12:00 AMdeleteBeforeReplace: false
worked!billowy-army-68599
little-cartoon-10569
10/06/2023, 12:05 AMbillowy-army-68599
deleteBeforeReplace
behaviour is you explicitly set the name, which is new to me