Skip to content

ec2: three inconsistent unknown-filter-name behaviours, where real AWS refuses #687

Closed

Description

@scttfrdmn

An unknown Filter.N.Name produces three different answers depending on which operation received it:

Behaviour Sites
silently dropped describeVolumes, describeSnapshots
matches nothing ec2InstanceMatchesFilter (emulator/ec2_plugin.go:907-910)
refused with an error describeInstanceTypeOfferings (:4260-4265)

Real AWS refuses, with InvalidParameterValue. #670 found the comment at describeVolumes:4775-4780 asserting that dropping is "the behavior every other EC2 filter site has" — which is false — and corrected the comment to describe today's behaviour accurately while leaving it in place, since a service-wide reconciliation is its own change.

This is that change. It is a compatibility event: a caller who misspells a filter name currently gets a full list back and would then get an error.

Acceptance criteria

  • The exact error code and message real AWS returns are verified against the API reference (and recorded as observed behaviour in the release's ## Provenance if the reference does not state them).
  • Every EC2 filter site refuses an unknown name through one shared helper, so a new operation cannot pick a fourth behaviour.
  • ec2InvalidFilterError (emulator/ec2_instancetypes.go:253-267) is the model, or is generalized into the shared helper.
  • A table-driven test covers one operation per former behaviour class.
  • CHANGELOG.md states the compatibility consequence plainly.

Activity

  1. added this to the v0.106.0 milestone on Aug 20, 2026
  2. added
    type: bug
    on Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: ec2type: bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions