aws-samples / aws-samples/lambdaedge-openidconnect-samples
Lambda Edge not working when using anything else than us-east-1
- 主要语言
- JavaScript
- 星标
- 73
- 派生
- 22
- 平均合并
- 19 小时 45 分钟
- 30 天内合并 PR
- 1
描述
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.
贡献指南
调研方向
使用不同于 us-east-1 的区域重新部署,并检查产生所报告错误的 CloudFront 和 Lambda@Edge 配置。将其行为与相关的 serverless-next.js issue 2179 进行比较。当示例能够从非 us-east-1 配置成功部署,同时满足 CloudFront 对 Lambda@Edge 的 us-east-1 要求时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- aws, javascript
- 领域
- authentication, cloud
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100