-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
If functions.<function>.lambdaAtEdge
is a list of distributions, rather than a single distribution, the plugin does not handle it;
functions:
lambda:
handler: handlers.onViewerRequest
lambdaAtEdge:
- distribution: 'WebsiteDistribution'
eventType: 'viewer-request'
pathPattern: '*'
Results in:
$ sls offline start
Serverless: CloudFront Offline listening on port 8080
Serverless: Cache directory: file:///tmp/edge-lambda
Serverless: Files directory: file:///tmp/edge-lambda
Serverless: Lambdas for path pattern *:
Serverless: viewer-request =>
Serverless: origin-request =>
Serverless: origin-response =>
Serverless: viewer-response =>
I am attaching the same Lambda to multiple different CloudFront paths (cache behaviours) so I need to list them all for each function.
Metadata
Metadata
Assignees
Labels
No labels