aws-lambda-go-deployment
Use when deploying or debugging Go-based AWS Lambda packaging, bootstrap, runtime, or handler issues — not when the main failure is SAM stack wiring, IAM OIDC…
Skill by matt-riley
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/matt-riley-aws-lambda-go-deployment
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: devops, cloud, security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/aws-lambda-go-deployment
What's inside
- Skill name
aws-lambda-go-deployment- Description
- Use when deploying or debugging Go-based AWS Lambda packaging, bootstrap, runtime, or handler issues — not when the main failure is SAM stack wiring, IAM OIDC auth, or a generic GitHub Actions run failure.
- License
- GPL-3.0
- Metadata
- kind: task · version: 3.0.0 · audience: general-coding-agent · category: workflow · maturity: draft
- Instructions
- 103 lines in SKILL.md · view on GitHub
Files (5)
- SKILL.md
- openai.yaml · agents/
- evals.json · evals/
- trigger-queries.json · evals/
- packaging-checklist.md · references/
SKILL.md (first lines)
# AWS Lambda Go deployment Use this skill when a Go Lambda fails because the binary, runtime, package layout, or event wiring is wrong and you need the smallest deployment-focused fix before widening into SAM, IAM, or CI triage. ## Use this skill when - A Go AWS Lambda fails to deploy, package, or start correctly. - `sam build` or a manual zip step is producing the wrong binary layout for a Go function. - The function is missing `bootstrap`, uses the wrong handler name, or was built for macOS instead of Linux. - You need to check Lambda Function URL or API Gateway wiring after confirming the Go binary should boot. - CloudWatch Logs need inspection to separate init/runtime failures from application-code failures. ## Do not use this skill when - The main problem is SAM template YAML, CloudFormation stack behavior, or IAM role wiring. - The failure is `AccessDenied` on `sts:AssumeRole` or `sts:AssumeRoleWithWebIdentity`. - The core issue is a plain Go compile or test failure before Lambda packaging begins. - The primary failure is a GitHub Actions workflow problem rather than the Lambda deployment path itself. ## Routing boundary | Situation | Use this skill? | Route instead | | --- | --- | --- | | Go Lambda packaging, runtime, bootstrap, or handler problems | Yes | - | | SAM template YAML, CloudFormation stack rollback, or IAM resource wiring | No | [`sam-cloudformation`](../sam-cloudformation/SKILL.md) | | Deploy workflow fails on AssumeRole or OIDC auth | No | [`sam-cloudformation`](../sam-cloudformation/SKILL.md) | | Go code does not compile before packaging | No | [`testing-workflows`](../testing-workflows/SKILL.md) | | CI workflow structure or runner behavior is failing | No | [`github-actions-failure-triage`](../github-actions-failure-triage/SKILL.md) | ## Inputs to gather **Required before editing** - Target Lambda architecture (`amd64` or `arm64`) and whether the function runs on Graviton. - Build path: `sam build`, Makefile, or manual `go build` plus zip. - Runtime and handler settings from the SAM template or deployment config. - The exact error from Lambda, SAM, or CloudWatch Logs. **Helpful if present** - `sam build` output or Docker build logs. - The built artifact layout (`bootstrap`, handler path, zip contents). - Function URL or API Gateway event configuration. - Recent CloudWatch log lines around `INIT_START` and `START`. **Only investigate if encountered** - Cross-account deploy wiring. - Downstream API Gateway integration responses after the function starts successfully. - Provisioned concurrency or alias-specific rollout details. ## First move 1. Classify the failure as build-time, package-layout, runtime-startup, or event-wiring. 2. Confirm the target runtime, architecture, and executable name before changing code. 3. Prefer `sam build --use-container` or an equivalent Linux build path before trusting a local macOS binary. ## Workflow 1. Confirm the Lambda runtime contract first: for Go functions prefer `provided.al2` or `provided.al2023`, not deprecated `go1.x`. 2. Build for the real Lambda target: use `sam build --use-container` for reproducible Linux builds, or manually cross-compile with `GOOS=linux` and `GOARCH=amd64` (or `arm64` on Graviton). 3. Verify the artifact layout matches the runtime expectation: - zipped custom-runtime binaries should be named `bootstrap` - SAM `Handler` values must match the deployed executable path when that path is used instead of `bootstrap` 4. Inspect the built zip or `.aws-sam` output before redeploying so you know whether the executable, permissions, and path are correct. 5. If deployment succeeds but invocation fails, read CloudWatch Logs and look for `INIT_START` and `START` before assuming an application-code bug. 6. If the binary boots, then check Function URL or API Gateway wiring, event payload shape, and template event definitions. 7. Route away immediately when the real blocker is SAM stack configuration, IAM OIDC auth, CI orchestration, or a plain Go build failure. ## Outputs - A clear diagnosis of whether the failure is packaging, runtime selection, artifact layout, or event wiring. - The corrected build/deploy assumptions for Linux architecture, executable naming, and runtime choice. - A clean handoff to `sam-cloudformation`, `testing-workflows`, or `github-actions-failure-triage` when this skill is not the right owner. ## Guardrails - Never trust a macOS-built Go binary to run in Lambda; cross-compile for Linux or build in a SAM container. - Never keep `go1.x` as the target runtime for new or repaired Go Lambda deployments. - Never assume a code bug before checking CloudWatch init/start logs for startup evidence. - Do not stretch this skill into SAM stack repair or IAM trust-policy debugging once those are the primary blocker. ## Validation - Confirm the runtime is `provided.al2` or `provided.al2023` and the target architecture matches the deployed function. - Confirm the deployment artifact contains the expected executable name (`bootstrap` or the configured handler path). - Re-run the narrowest available build or packaging command and verify the artifact layout before redeploying. - If the function is deployed, inspect CloudWatch logs for `INIT_START` and `START` to confirm whether the runtime got far enough to execute code. - Smoke test: - should trigger: "Our Go Lambda was built on macOS and now fails in AWS with an exec-format or missing-bootstrap style startup error." - should not trigger: "The deploy job fails before deployment because GitHub Actions gets AccessDenied on AssumeRoleWithWebIdentity." (→ `sam-cloudformation`) ## Examples - "Package this Go Lambda for SAM so it runs on Lambda instead of failing at startup with a missing `bootstrap`." - "We switched a Go function to Lambda arm64 and now the binary will not start; check the runtime, GOARCH, and zip layout." - "This Go Lambda deploys, but the Function URL returns errors; verify the binary boots before checking the event wiring." ## Reference files - [`references/packaging-checklist.md`](references/packaging-checklist.md) - quick checks for Linux cross-compilation, runtime choice, artifact naming, and route-away cues.
From matt-riley/agent-skills, GPL-3.0.
More from matt-riley/agent-skills
- 0.614score
agent-governance
matt-riley
Use this skill when building AI agents that call external tools, implementing policy-based access controls, adding semantic intent classification, creating…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
agent-instructions
matt-riley
Use when creating or updating agent instruction files (AGENTS.md for Pi, copilot-instructions.md for Copilot, per-path guides, or AGENTS.md router) —…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
agent-supply-chain
matt-riley
Use this skill when generating SHA-256 integrity manifests for agent plugins, verifying that installed plugins match their manifests, detecting tampered…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
agentic-eval
matt-riley
Use when designing or implementing an evaluation loop for AI agent outputs — reflection loops, evaluator-optimizer pipelines, LLM-as-judge scoring, or…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
api-smoke-validation
matt-riley
Use when running quick, repeatable API smoke tests after changes with hurl, including auth, status-code, response-shape, endpoint sanity, and pre-integration…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
aws-sdk-v2-to-v3-migration
matt-riley
Use when the codebase still imports from 'aws-sdk' v2, uses new AWS.*() constructors, .promise() calls, AWS.config.update(), DocumentClient, or s3.upload() —…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
circleci-to-github-actions-migration
matt-riley
Use when a repository still depends on .circleci/config.yml jobs, workflows, or artifacts that need to be replaced or phased out with GitHub Actions —…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
mocha-to-jest-migration
matt-riley
Use when a JavaScript or TypeScript suite still depends on Mocha, Chai, or Sinon and needs an incremental Jest migration.
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
project-references-migration
matt-riley
Use when a layered TypeScript workspace needs an incremental project-references migration without breaking package boundaries or editor resolution.
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
ast-grep
matt-riley
Use when you need ast-grep structural search, linting, or safe codemod rewrites, especially for requests that mention ast-grep, sg, codemod, rule files, or…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
code-generation
matt-riley
Run and troubleshoot repository code generation after detecting the generator contract.
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
code-intelligence
matt-riley
Use when navigating or refactoring code — choosing between LSP, rg, or semantic search tools; an LSP call returns empty and you need to know if it failed; or…
SkillAFreshness: A★ 4Claude Code +9
Signals
- Stars
- 4
- Forks
- 0
- Open issues
- 1
- Last commit (this folder)
- Oct 7, 2026 (21 days ago)
- Last release
- Oct 23, 2026 (5 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 3.0.0
- License
- GPL-3.0
- Repository
- github.com/matt-riley/agent-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from matt-riley
- 0.614score
agent-instructions
matt-riley
Use when creating or updating agent instruction files (AGENTS.md for Pi, copilot-instructions.md for Copilot, per-path guides, or AGENTS.md router) —…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
agent-supply-chain
matt-riley
Use this skill when generating SHA-256 integrity manifests for agent plugins, verifying that installed plugins match their manifests, detecting tampered…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
agentic-eval
matt-riley
Use when designing or implementing an evaluation loop for AI agent outputs — reflection loops, evaluator-optimizer pipelines, LLM-as-judge scoring, or…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
api-smoke-validation
matt-riley
Use when running quick, repeatable API smoke tests after changes with hurl, including auth, status-code, response-shape, endpoint sanity, and pre-integration…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
aws-sdk-v2-to-v3-migration
matt-riley
Use when the codebase still imports from 'aws-sdk' v2, uses new AWS.*() constructors, .promise() calls, AWS.config.update(), DocumentClient, or s3.upload() —…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
agent-governance
matt-riley
Use this skill when building AI agents that call external tools, implementing policy-based access controls, adding semantic intent classification, creating…
SkillAFreshness: A★ 4Claude Code +9
Cite this page
aws-lambda-go-deployment skill. Agent Mart. https://agentmart.dev/skills/matt-riley-aws-lambda-go-deployment (last updated 2026-10-24)