You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have multiple Lambda@Edge functions that operate based on different paths (specified through different CacheBehaviors.) In other words, path pattern /blah is associated with a cache behavior that runs a Lambda function, BlahLambdaFunction while path pattern /blerg.jpg is associated with a different CacheBehavior that is tied to BlergLambdaFunction.
Is this not yet supported by the plugin? When I tried to use it it just updated by default CacheBehavoir. 😳
The text was updated successfully, but these errors were encountered:
brettneese
changed the title
Multiple cache behavoirs
Associate different functions with multiple CacheBehavoirs?
Nov 6, 2017
Looking at the code, it seems like the plugin will always associate the Lambda Function to all the CacheBehaviors of the distribution. It sounds like a safe assumption, but it does not cover your use case, @brettneese.
@jthomerson I guess such a use case would require specifying an additional (optional) parameter for each Lambda Function, to match a specific cache behavior. What do you think?
jthomerson
changed the title
Associate different functions with multiple CacheBehavoirs?
Associate different functions with multiple CacheBehaviors?
Apr 10, 2018
We have multiple Lambda@Edge functions that operate based on different paths (specified through different CacheBehaviors.) In other words, path pattern /blah is associated with a cache behavior that runs a Lambda function, BlahLambdaFunction while path pattern /blerg.jpg is associated with a different CacheBehavior that is tied to BlergLambdaFunction.
Is this not yet supported by the plugin? When I tried to use it it just updated by default CacheBehavoir. 😳
The text was updated successfully, but these errors were encountered: