用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/AxGord/claude-workflow --skill aws-lambda命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | aws-lambda |
| description | AWS Lambda .NET deployment gotchas |
LastUpdateStatus: InProgress until done. (The old per-invoke ENI cold-start penalty is gone.)Console.Error.WriteLine() IS captured by CloudWatch on the managed .NET runtime (Lambda redirects the process's stdout/stderr) — but entries lack the request-id prefix and multi-line output splits into separate events. Output genuinely disappears only in narrower cases: writes during a crashed INIT (process torn down before flush) or a custom-runtime bootstrap that doesn't forward stderr. Prefer ILambdaContext.Logger.LogLine() in handler code or ILogger in the ASP.NET pipeline.logs:CreateLogGroup permission = logs silently lost. Log group created lazily on first invoke. No permission = no log group = nowhere to write = no error visible anywhere.UseHttpsRedirection() hangs Lambda. No Kestrel HTTPS port. Middleware hangs trying to discover one (aws-lambda-dotnet #1543; discussion #1424 reports the same shape — handler completes but the response never reaches the runtime — as warm-invoke middleware timeouts on a custom runtime). Only enable in Development.APIGatewayHttpApiV2ProxyFunction surfaces it as a runtime-client error for that invocation, so the caller sees a generic 500-style failure instead of a 413.Timeout and MaxErrorRetry on AmazonS3Config.us-east-1 is a local-dev gotcha, not a Lambda one. Inside Lambda the SDK resolves the region from the AWS_REGION env var the service injects. new AmazonS3Client() without explicit region silently targets us-east-1 only when no env/profile region is configured — e.g. local integration tests — causing slow cross-region requests with no error.AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY/AWS_SESSION_TOKEN) injected from the execution role. Any "IMDS credential error is cached until restart" advice applies to EC2/ECS, not Lambda.--runtime linux-x64 (or linux-arm64). Since .NET 6, crossgen2 supports cross-OS compilation, so building ON macOS/Windows is fine as long as the target RID matches the Lambda runtime (dotnet8 runs on Amazon Linux 2023). R2R for the wrong RID silently has no effect.Database.Migrate() default command timeout = 30s. Heavy migrations fail with EF timeout, not Lambda timeout. Set CommandTimeout explicitly.Origin header in request. Preflight without Origin returns 200 but no Access-Control-* headers. Browser blocks the actual request. Hard to diagnose — server returns 200.UpdateFunctionCode + UpdateFunctionConfiguration cannot run simultaneously. Gives ResourceConflictException. CI/CD must wait for LastUpdateStatus: Successful between calls.State: Active does NOT mean ready. LastUpdateStatus: InProgress means API calls will fail with ResourceConflictException. Must check both fields.$LATEST. Must invoke the aliased version to benefit. CLI deploys without explicit alias still get cold starts.