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
When Using CloudFront event to trigger lambda@edge wit specifying the pathPattern property, Serverless adds the PathPattern property to DefaultCacheBehavior, yet the PathPattern property is only supported in CacheBehaviors array under custom CacheBehavior, on deployment Serverless throws an error of unsupported property PathPattern after building the cloudformation
Description
What did you do?
Set a Lambda@edge which is triggered by cloudformation event and use pathPattern property as below :
Serverless should've handled this case and created a custom CacheBehavior that has PathPattern instead of adding the PathPattern property under DefaultCacheBehavior and the compiled cloudformation shoul've been something similar to this (created manually):
Bug Report
When Using CloudFront event to trigger lambda@edge wit specifying the pathPattern property, Serverless adds the PathPattern property to DefaultCacheBehavior, yet the PathPattern property is only supported in CacheBehaviors array under custom CacheBehavior, on deployment Serverless throws an error of unsupported property PathPattern after building the cloudformation
Description
serverless.yml
file?SLS_DEBUG=*
environment variable (e.g.SLS_DEBUG=* serverless deploy
)The text was updated successfully, but these errors were encountered: