Commit 4deb19f
authored
fix(elbv2): stop modeling runtime-managed TG Targets and LoadBalancerArns
Targets is populated at runtime by ECS Services and any other consumer of the register-targets API. LoadBalancerArns is populated when a Listener attaches the target group to an ALB. Neither field is meaningfully user-settable.
Tracking these in formae state caused the periodic Synchronizer to write a new resource version on every ECS task placement and every Listener attach. The reconcile drift gate then rejected subsequent applies with the stacks-have-been-modified error even though the user had not changed their forma, forcing operators into force-mode or extract-and-absorb workarounds on every reconcile.
Both fields are now dropped from the schema and stripped from the AWS Read response before the result enters formae state. Mirrors the existing pattern for other resource types where a returned field is owned by a sibling resource or external system.1 parent 7f6b6fa commit 4deb19f
2 files changed
Lines changed: 8 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
55 | 63 | | |
56 | 64 | | |
57 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 20 | | |
28 | 21 | | |
29 | 22 | | |
| |||
41 | 34 | | |
42 | 35 | | |
43 | 36 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | 37 | | |
48 | 38 | | |
49 | 39 | | |
| |||
126 | 116 | | |
127 | 117 | | |
128 | 118 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | 119 | | |
133 | 120 | | |
134 | 121 | | |
| |||
0 commit comments