New pattern submission - lambda-web-pr-previews-nodejs-sam
维护者通常 2 天内回复
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
调研方向
The issue links pull request #3365, which contains the pattern implementation. Start by reviewing that pull request and its workflow and SAM files; the issue reports an end-to-end test in two AWS regions. The requested behavior is preview endpoints for pull requests, a production endpoint on merges to main, and cleanup when pull requests close; the work is already under way.
由索引模型根据 Issue 内容生成。
描述
Pattern name: lambda-web-pr-previews-nodejs-sam
Pull request: https://github.com/aws-samples/serverless-patterns/pull/3365
Description:
A preview URL for every GitHub pull request, the way Vercel and Netlify do it, on a single AWS Lambda Web Function. A GitHub Actions workflow deploys each pull request to its own endpoint named pr-<number>, comments the URL on the pull request, keeps the same URL on every push and deletes the endpoint when the pull request is merged or closed. Merging to main deploys the prod endpoint. The workflows assume AWS IAM roles with GitHub OpenID Connect, and the preview role can change only pr-* endpoints, so pull request code cannot touch production.
Services used: AWS Lambda Web Functions, Amazon S3, AWS IAM (GitHub OIDC), GitHub Actions.
Language: Node.js
Framework: AWS SAM
Level: 300
Tested end to end in a live account in us-east-1 and eu-central-1, including a real GitHub repository (open, push, merge and close), then deleted with nothing left behind.
- 主要语言
- Python
- 星标
- 1.8k
- 派生
- 1.1k
- 平均合并
- 3 天 8 小时
- 30 天内合并 PR
- 16
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
aws-samples/serverless-patterns 的其他 Issue
-
New pattern submission - lambda-web-agentcore-nodejs-terraform可能已有人在做 @manishh-13 于 7 天前认领。 未关闭
难度 3/5 半天 新手友好度 22/100
aws-samples/serverless-patterns#3358 ·
维护者通常 2 天内回复
-
难度 3/5 1-2 天 新手友好度 55/100
aws-samples/serverless-patterns#3345 ·
维护者通常 2 天内回复
-
Omarvio.com未关闭
难度 4/5 3-5 天 新手友好度 42/100
aws-samples/serverless-patterns#3335 ·
维护者通常 2 天内回复
-
New pattern submission - sfn-lambda-microvms-callback-sam可能已有人在做 @manishh-13 于 20 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 15/100
aws-samples/serverless-patterns#3331 ·
维护者通常 2 天内回复
-
难度 3/5 1-2 天 新手友好度 25/100
aws-samples/serverless-patterns#3318 ·
维护者通常 2 天内回复
查看 aws-samples/serverless-patterns 的全部 Issue
相似的 Issue
-
resource-submission validation-passed
难度 1/5 1 小时以内 新手友好度 88/100
hesreallyhim/awesome-claude-code#3214 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
doobidoo/mcp-memory-service#1650 ·
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 76/100
ml-explore/mlx-lm#2002 ·
维护者通常 2 天内回复