-
Notifications
You must be signed in to change notification settings - Fork 11
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
does not handle list of distributions #7
Comments
I can correct the inability to define That begs the question, though, which you distribution would you expect the offline server to mock? In the live scenario, different distributions would be bound to different domains whereas with the offline server it only has |
That is a fair point. I think it's an acceptable limitation. In my case I am using a single distribution but it has multiple cache behaviours (different origins and different caching settings for different paths), and CloudFront requires the lambdas to be attached to each, they are not shared.
|
I'm in a similar situation where I'm using the native originRequest:
handler: functions/origin-request.handler
events:
- cloudFront:
eventType: origin-request
isDefaultOrigin: true
origin:
DomainName: ${self:custom.webAppBucket}.s3.amazonaws.com Would it be possible for this plugin to use the natives |
If
functions.<function>.lambdaAtEdge
is a list of distributions, rather than a single distribution, the plugin does not handle it;Results in:
I am attaching the same Lambda to multiple different CloudFront paths (cache behaviours) so I need to list them all for each function.
The text was updated successfully, but these errors were encountered: