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:
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
Listener already has an attributes map. Now let's look at the QueryHandler for existing similar actions (DescribeLoadBalancerAttributes, ModifyLoadBalancerAttributes) to model the new handlers after.
Assistant
Now let's check helper methods
voidResponse,xmlError, and theAwsQueryResponseutility to understand response building conventions.Assistant
Now let's insert the new methods after
describeListenerCertificatesand before the Helpers section.Assistant
I'll use the editor tools directly instead.
Assistant
Let me add a blank line before the Helpers marker for style consistency.
Assistant
Now let's update the QueryHandler. First add the switch cases.
Assistant
Now insert new handler methods at line 754 (before the "XML builders" marker).
Assistant
I accidentally deleted the closing brace of
handleDescribeListenerCertificates. Let me fix that.Assistant
Now file looks good. Let's check XmlBuilder's
start/endmethod to confirm the empty element pattern (start().end()) produces valid empty tag, and check for build tool (Maven/Gradle) to compile.Assistant
Good, that works fine for empty elements. Now let's build the project to check for compile errors.
Assistant
Compilation succeeded with no errors (only warnings from wrapper). Now let's find existing tests for ELBv2 to run and verify no break.
Assistant
All 27 tests pass. Now let's run the full test suite for elbv2 module including LambdaTarget test, and write a quick reproduction script to verify against real endpoint.
Assistant
Both test suites pass. Now let's write a quick reproduction script using the AWS CLI to confirm the fix works end-to-end.
Assistant
All 5 verification tests pass. Now let's remove the temporary test file per instructions.
Assistant
Good, only the two intended files are modified. Let's do a final full-module test run for elbv2 to be safe, and re-run the whole build to confirm nothing else broke.
Assistant
Both existing test suites (36 total tests) pass. Let's run the full test suite to be thorough (this might take a while, but let's check).
Assistant
Only a defunct process, nothing actively running. That's fine — full suite is just large; the targeted ELBv2 tests (the only ones affected by this change) all pass, and compilation succeeds cleanly.
Assistant
The diff is clean and matches the exact interface specification from the issue. Let's go through the checklist.
Checklist review:
Assistant
Now let's confirm the working tree is clean of any leftover temp files before submitting.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.