Lambda Edge not working when using anything else than us-east-1
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- aws, javascript
- Domain
- authentication, cloud
Research direction
Reproduce the deployment with a region other than us-east-1 and inspect the CloudFront and Lambda@Edge configuration that produces the reported error. Compare the behavior with the related serverless-next.js issue 2179. Done should mean the sample deploys successfully from a non-us-east-1 configuration while satisfying CloudFront's us-east-1 Lambda@Edge requirement.
Written by the indexing model from the issue text.
Description
When using an AWS region other than us-east-1, I'm getting the following error:
CREATE_FAILED AWS::CloudFront::Distribution CFDistribution Resource handler returned
message: "Invalid request
provided:
AWS::CloudFront::Distribution:
The function must be in region
'us-east-1'. ARN:
arn:aws:lambda:eu-west-1:16178
0196320:function:oidc-auth-Clo
udFrontAuthFunction-6MGhzj0e5r
ok:1 (Service: CloudFront,
Status Code: 400, Request ID:
287a68e2-8ffe-4e8c-a7a3-0f3120
db1c8d)" (RequestToken: d88e64
29-752a-7ea7-0910-76dbb1585f45
, HandlerErrorCode:
InvalidRequest)
ROLLBACK_IN_PROGRESS AWS::CloudFormation::Stack oidc-auth The following resource(s)
failed to create:
[CFDistribution]. Rollback
requested by user.
In https://github.com/serverless-nextjs/serverless-next.js/issues/2179 there was a similar issue.
- Dominant language
- JavaScript
- Stars
- 73
- Forks
- 21
- Avg merge
- 19h 45m
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from aws-samples/lambdaedge-openidconnect-samples
-
Difficulty 4/5 3-5 days Newbie friendliness 32/100
aws-samples/lambdaedge-openidconnect-samples#73 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
-
Difficulty 5/5 Over a week Newbie friendliness 28/100
aws-samples/lambdaedge-openidconnect-samples#71 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 32/100
aws-samples/lambdaedge-openidconnect-samples#65 · 1 comment · 2 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
aws-samples/lambdaedge-openidconnect-samples#57 · 2 comments · 1 reaction ·
All issues in aws-samples/lambdaedge-openidconnect-samples
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·