Untitled conversation
- User
[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:
codeapi 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
bash# 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. - Assistant
I’ll inspect the ELBv2 handler/service patterns, implement the three actions and model state, then run the focused test suite.
- Assistant
The listener model already carries an attributes map, so that part can mirror the existing load-balancer/target-group implementation directly. I’m checking the locally installed SDK model for the precise capacity-reservation XML shape before editing.
- Assistant
Implementation and protocol tests are in place, including empty defaults, listener attribute round-tripping, and load-balancer validation through the service. I’m running the ELBv2 integration test now.
- Assistant
The first Maven run reached test execution but attempted to fetch a missing Surefire component, so I stopped it to keep verification fully offline. Compilation succeeded; I’m rerunning in Maven offline mode to see whether the cached dependencies are sufficient.
- Assistant
The offline package build succeeds, including compilation of all production and test sources. The focused test runner itself remains unavailable offline because its JUnit provider artifact is not cached; I’m doing a final diff/status check before handing this back.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.