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 trace the ELBv2 service model and query handler, compare existing load-balancer/target-group attribute implementations, then add the service APIs and action routing with matching response shapes. I’ll run focused tests (and broader tests if practical), inspect the diff, and verify unsupported actions now produce the expected empty/null state or validation errors.
- Assistant
The repository already has listener attribute storage (
Listener.attributes) and the exact copy/merge pattern for load balancers and target groups. I’ll reuse that pattern, add a small immutableCapacityReservationrecord at service level, validate the requested load balancer through the existing helper, and expose all three actions both in the handler switch and the controller’s ELBv2 allow-list. The capacity response will contain an empty reservation object with no child fields when unset. - Assistant
Implementation is complete and the focused ELBv2 integration test passes. Compilation also passes. The original error was not separately reproduced with a live pre-change request because the repository test harness starts the service and the change was verified through the same routing path; the missing actions were confirmed directly in the handler/controller allow-lists. I also checked edge behavior: unknown listener/load-balancer ARNs use the existing AWS-compatible
ListenerNotFound/LoadBalancerNotFoundvalidation, attribute reads return defensive copies, and modifying attributes merges rather than replaces them. The empty capacity reservation serializes as an empty reservation object.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.