Closed
Description
I'm unable to use the Lambda@Edge example with CloudFront being set on an other region than us-east-1
.
Because a Lambda@Edge function must be in region us-east-1
:
The function must be in region 'us-east-1'. ARN: arn:aws:lambda:eu-west-1:xxxxxx:function:OriginRequestLambdaFunct-xxxxxx:1 (Service: AmazonCloudFront; Status Code: 400; Error Code: InvalidLambdaFunctionAssociation; Request ID: xxxxxx)
Can you please add a Lambda@Edge example workaround, or recommendations that allows CloudFront and Lambda@Edge to be set up on different regions?
Maybe 2 separate Cloudformation templates?
This issue is related to #323 and #565
PS: Other people on Twitter also expresses this needs
Edit: Workaround here #635 (comment)