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
Good, listener already has attributes map. Now let's check the QueryHandler to see how DescribeLoadBalancerAttributes/ModifyLoadBalancerAttributes are wired, to mimic pattern for listener attributes and capacity reservation.
Assistant
Now let's look at the listener certificates handler and parseAttributes helper, plus end of file for helper functions.
Assistant
Now let's find parseAttributes helper and parseCertificateList, and voidResponse helper for patterns.
Assistant
Now let's add the service methods after
describeListenerCertificates.Assistant
Now let's update the QueryHandler: add switch cases and handler methods.
Assistant
Now file is open. Let's retry the replace.
Assistant
Now let's add the handler methods near the Listener Certificates section.
Assistant
This looks identical to what I searched. Let me open the file explicitly first before replace.
Assistant
Now let's insert new methods using edit at line 754:756 range (replacing closing brace + blank line + comment line region) to add new content before the XML builders section.
Assistant
Now let's check ElbV2Service import for
Instantalready present. Let's compile the project.Assistant
Compiled successfully (no errors shown, just warnings). Let's run a broader compile check with verbose output to be safe, then run existing tests related to ELBv2.
Assistant
Good, compiled successfully. Now let's run the existing ELBv2 integration tests.
Assistant
It seems the test ran and application started/stopped without failures shown (no test results printed though — let's check more explicitly with test output).
Assistant
All 27 tests passed. Now let's write a quick reproduction script using curl to hit the running emulator directly, verifying the new actions work.
Assistant
All 6 tests passed, confirming both new actions work correctly, including error handling for missing resources. Now let's clean up the temp test file and run the full existing test suite for elbv2 (and a broader suite) to make sure nothing broke.
Assistant
Good — only the two intended files are changed, and the temp test file was removed. Let's view the final diff for review.
Assistant
The diff is clean and focused. Let's run the full test suite one more time to be thorough (excluding compatibility-tests submodule which may need network).
Assistant
Good, no lingering processes. Full test suite is too large/slow for this environment; I already validated the relevant ELBv2 tests pass and manually verified the new functionality with a temporary reproduction test (now removed). Let's do a final check of git status.
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.