mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
DescribeLoadBalancerAttributes and DescribeTargetGroupAttributes answered with an empty list for a resource nobody had modified: a key appeared only once something had explicitly set it. AWS always returns the full set, and a key is absent only when the resource type does not have it. The Terraform provider reads these on every refresh, into aws_lb's idle_timeout, enable_http2, enable_deletion_protection and access_logs, and into aws_lb_target_group's stickiness, deregistration_delay and load_balancing_algorithm_type, so an empty list left every one of them a permanent diff on every ALB and NLB. Which keys apply is decided the way AWS decides it, by load balancer type and target group protocol rather than one flat list: an NLB has no idle timeout, an ALB has no proxy protocol, a Lambda target group has neither. Stored values win over defaults, so a modified key still reports what it was set to. An existing test pinned the old behaviour by asserting the modified key was the only one returned; it now asserts that key is among the set, which is what it was really trying to establish.