ISSUE DESCRIPTION [BUG] ELBv2 DescribeListenerAttributes and DescribeCapacityReservation…
- User
ISSUE DESCRIPTION
[BUG] ELBv2 DescribeListenerAttributes and DescribeCapacityReservation return UnsupportedOperation (breaks @pulumi/aws refresh)
Service
ELBv2 (Elastic Load Balancing v2)
AWS API Action
DescribeListenerAttributesandDescribeCapacityReservationExpected behavior
DescribeListenerAttributesreturns the listener's attribute list (empty by default until attributes are set).DescribeCapacityReservationreturns the load balancer's capacity reservation status (empty/none when no capacity is reserved).
Both are normal management-plane reads that the AWS SDKs issue during resource refresh.
Actual behavior
Both actions return:
api error UnsupportedOperation: Action DescribeListenerAttributes is not supported. api error UnsupportedOperation: Action DescribeCapacityReservation is not supported.@pulumi/aws6.66.0+ (and recent Terraform AWS provider versions) call these two actions when refreshing existingLoadBalancer/Listenerresources. Because Floci returnsUnsupportedOperation, the provider errors out on refresh. The only workaround today is pinning@pulumi/awsto a version that predates these calls (e.g.6.30.0).ELBv2 is otherwise well supported in Floci — only these two read actions are missing from
ElbV2QueryHandler's action switch.Reproduction
# Assuming a load balancer + listener already exist (CreateLoadBalancer / CreateListener): aws --endpoint-url http://localhost:4566 elbv2 describe-listener-attributes \ --listener-arn arn:aws:elasticloadbalancing:us-east-1:000000000000:listener/app/my-lb/abc/def # -> UnsupportedOperation: Action DescribeListenerAttributes is not supported. aws --endpoint-url http://localhost:4566 elbv2 describe-capacity-reservation \ --load-balancer-arn arn:aws:elasticloadbalancing:us-east-1:000000000000:loadbalancer/app/my-lb/abc # -> UnsupportedOperation: Action DescribeCapacityReservation is not supported.Environment
- Floci version / image tag:
1.5.18(floci/floci:latest); also present on currentmain - AWS provider that triggers it:
@pulumi/aws6.66.0+ (works when pinned to 6.30.0) - How you're running Floci: Docker / Docker Compose
A PR implementing
DescribeListenerAttributes,ModifyListenerAttributes, and (mirroring the existing load balancer / target group attribute handlers) will reference this issue. - Assistant
I'll start by exploring the repository structure and the existing ELBv2 implementation to mirror how other attribute handlers work.
- Assistant
Let me look at the ELBv2 service and query handler to understand the existing attribute handlers.
- Assistant
Let me search for attribute-related code in the ELBv2 handlers.
- Assistant
rg is not available, let me use grep.
- Assistant
I'll inspect the service layer and model for how attributes and listeners are stored.
- Assistant
Next I'll inspect the Listener/LoadBalancer models and the existing attribute handlers.
- Assistant
I'll check the AWS response shape for capacity reservation and any existing test patterns next.
- Assistant
I'll look up AWS ELBv2 capacity-reservation response shape and any related docs in the repo.
- Assistant
Checking XmlBuilder element helpers and how Instant is serialized elsewhere:
- Assistant
Implementing service methods and query handlers, mirroring the existing attribute patterns.
- Assistant
I'll add the new service methods right after the existing attribute helpers.
- Assistant
I introduced a duplicate — fixing the broken section of
ElbV2Servicenow. - Assistant
Next I'll add
describeListenerAttributesandmodifyListenerAttributeson the service. - Assistant
I'll add the listener attribute methods after modifyListener returns.
- Assistant
I'll insert the listener attribute methods before the Rules section.
- Assistant
There's a duplicate return — I'll remove it.
- Assistant
Next I'll wire the new actions into
ElbV2QueryHandler. - Assistant
Updating the action switch and adding the handler methods.
- Assistant
Adding the capacity-reservation and listener-attribute handler implementations.
- Assistant
Let me read those sections and insert handlers.
- Assistant
I'll insert the capacity-reservation handler next to the load balancer attributes handlers.
- Assistant
There's another duplicate return — fixing that and adding the listener-attribute handlers.
- Assistant
Now adding the listener attribute handlers after handleModifyListener.
- Assistant
Let me open around line 465-492
- Assistant
I'll carefully insert the listener attribute handlers before the Rules section.
- Assistant
I'll align ModifyListenerAttributes with the existing LB pattern and return only the attributes that were modified.
- Assistant
There's still a reference to
allAttrs— fixing that now. - Assistant
Verifying the service file and compiling the project next.
- Assistant
HOME isn't set for mvnw — I'll set it and compile.
- Assistant
Compile succeeded. Running the ELBv2 integration tests next.
- Assistant
I'll check the surefire report for the actual test results.
- Assistant
I'll add a temporary test to exercise the new APIs, run it, then remove it.
- Assistant
All new API checks passed. Removing the temporary test and confirming the final diff.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.