Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend support for ALB event paths #1734

Open
apokryfos opened this issue Sep 18, 2023 · 0 comments
Open

Extend support for ALB event paths #1734

apokryfos opened this issue Sep 18, 2023 · 0 comments

Comments

@apokryfos
Copy link

apokryfos commented Sep 18, 2023

Feature Request

Support ? wildcards in ALB event path condition.

Sample Code

The following should work:

functions:
  myFunc:
    handler: alb.handler
    events:
      - alb:
          listenerArn: <arn>
          priority: <priority>
          conditions:
            path: /api/v?/*

The above current does not work. Based on https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#path-conditions the ? should work in order to match exactly 1 character

i.e.
/api/v1/anything should match
/api/v2/anything should match
/api/v123/anything should not match
/api/v/anything should not match

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant