dherault / dherault/serverless-offline

Extend support for ALB event paths

Open
#1,734 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.3k
Forks
811
Avg merge
2d 4h
Merged PRs (30d)
3

Description

## Feature Request

Support `?` wildcards in ALB event path condition.

**Sample Code**

The following should work:

```yaml
functions:
myFunc:
handler: alb.handler
events:
- alb:
listenerArn:
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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.