-
Notifications
You must be signed in to change notification settings - Fork 19
Changing externalSubnets leads to update failure #348
Comments
Here's what happens:
|
The root of the problem here is that creating a new LoadBalancer should force the creation of new TargetGroups for any targets associated with the LoadBalancer, but it does not because the dependency between these is "indirect" in that it is created implicitly be the creation of a |
/cc @mmdriley |
@mmdriley noted that the "solution" to this in CloudFormation is mentioned here: https://forums.aws.amazon.com/thread.jspa?messageID=783997&tstart=0 In paritcular, in order to force the TargetGroup to be replaced whenever the LoadBalancer is replaced - it is necessary to have some input property that forces replacement depend on the LoadBalancer. In the case below, they choose to use the
This is more or less just a hack to convince the planning engine to believe there is a Forces Replacement dependency between these two resources. Notably, Terraform also doesn't have a first class way to express this. They've discussed it in hashicorp/terraform#8099. In the short term, we may need to do something like the hack above. In the longer term, we may need to add a concept of |
Related to this, but orthogonal, is the fact that our current load balancers are auto-named with global names. Which means (I think) that if you can end up accidentally "rotating" load balancers between listeners, if you rearrange your cloud services. I believe based on our experience yesterday that we should think of the load balancer and listener as being "owned" by the service that forces its creation. Did we file a separate issue to track this? |
Opened #349 on that issue. (Note that in practice that would have not had any bearing on the issue we hit yesterday - certainly there are other cases where it would cause problems though). |
Moving to 0.11, since this is not a commonly hit scenario - and we should think about whether doing pulumi/pulumi#838 will be a better solution here before making what would otherwise be a breaking change to resource naming. |
I don't believe this issue is tracking any specific proposal at this point - pulumi/pulumi#838 and #349 are the two follow-ups here. |
Changing
externalSubnets
causes a failure like below.The text was updated successfully, but these errors were encountered: