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 explore the ELBv2 service structure and existing attribute handlers to mirror them for the missing actions.
- Assistant
Let me look at ElbV2Service and ElbV2QueryHandler for existing attribute handling patterns.
- Assistant
rg is not found, use grep instead.
- Assistant
I'll open the service and model files next to study attribute handling and capacity-related fields.
- Assistant
Let me read the attribute methods and listener-related methods in ElbV2Service, and also look at the models.
- Assistant
Now I'll inspect the QueryHandler switch and any nearby patterns used for similar describe handlers.
- Assistant
I'll check existing tests and any docs about the capacity-reservation response shape.
- Assistant
I'll check how records are defined elsewhere and look up the AWS capacity-reservation response fields.
- Assistant
I'll inspect XmlBuilder usage and the listener section of ElbV2QueryHandler, plus AWS SDK shapes if present.
- Assistant
Checking Instant XML formatting and the end of ElbV2Service for where to add new methods.
- Assistant
I'll look at the ELB docs and XmlBuilder class for optional element handling, then implement the changes.
- Assistant
I have enough context — implementing the service methods and query handlers now.
- Assistant
sed syntax error with colon range - need normal hyphens
- Assistant
Adding service methods for listener attributes and capacity reservation.
- Assistant
I need to open the file at that line first
- Assistant
Now I can use edit or replace
- Assistant
Next I'll add the listener attribute methods after
modifyListener. - Assistant
I'll insert listener attribute methods before the Rules section.
- Assistant
Updating ElbV2QueryHandler: adding switch cases and handlers.
- Assistant
I'll update the switch and add handlers.
- Assistant
Now add listener attribute cases to the switch.
- Assistant
I'll add the capacity reservation and listener attribute handler methods next.
- Assistant
I'll add handleDescribeCapacityReservation after describe LB attributes.
- Assistant
Now I'll insert the listener attribute handlers after handleModifyListener.
- Assistant
Let me read around line 466-493
- Assistant
Insert the handlers.
- Assistant
Updating the docs and compiling to verify the changes.
- Assistant
Update the docs for supported actions.
- Assistant
I'll add a short behavior note, then compile and run the ELBv2 tests.
- Assistant
Compiling and running the ELBv2 tests now.
- Assistant
Need to set HOME
- Assistant
Compile succeeded — running the ElbV2 integration tests next.
- Assistant
Checking the surefire reports for pass/fail details.
- Assistant
All 27 tests passed. I'll add a temporary script to exercise the new endpoints end-to-end.
- Assistant
I'll temporarily add integration tests, run them, then restore the original file.
- Assistant
Creating a temporary test file to verify the new endpoints.
- Assistant
All temporary tests passed. Removing the temp test file before submit.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.