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 implement the missing ELBv2 handlers by following the existing load balancer and target group attribute patterns in the codebase.
- Assistant
Implementing the three missing API actions and adding integration tests.
- Assistant
Fixing the botched integration test.
- Assistant
The extra listener on port 8080 broke the delete cascade test. Reordering tests so the empty-attributes check runs on the original listener before modification.
- Assistant
Implemented the three missing ELBv2 read/write actions so
@pulumi/awsrefresh no longer hitsUnsupportedOperation.Changes
ElbV2Service.java- Added
CapacityReservationrecord (decreaseRequestsRemaining,minimumCapacityUnits,lastModifiedTime) describeListenerAttributes/modifyListenerAttributes— mirror the existing LB/TG attribute handlers using theListener.attributesmapdescribeCapacityReservation— validates the load balancer and returns its reservation state (allnullwhen none is configured)
LoadBalancer.java- Added optional capacity-reservation fields so state can be stored when needed later
- Added
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.