aws-sam_skill
- Shell
0
GitHub Stars
1
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill shotaiuchi/dotclaude --skill aws-sam- SKILL.md1.0 KB
Overview
This skill provides hands-on guidance for AWS SAM serverless application development, focusing on Lambda function implementation, SAM template design, local testing, and deployment automation. It helps you structure projects, create reusable templates, and streamline CI/CD for serverless workloads using shell-based workflows. The goal is to accelerate reliable, production-ready serverless deployments with clear conventions.
How this skill works
The skill inspects your project layout and SAM templates to validate resource definitions, runtime settings, and packaging configuration. It suggests improvements for function handlers, IAM least-privilege, environment configuration, and event sources. It also outlines local testing steps with sam local, build and package commands, and deployment patterns for repeatable, automated releases.
When to use it
- Starting a new serverless project on AWS using Lambda, API Gateway, DynamoDB, or S3 triggers
- Refactoring an existing SAM template to follow best-practice conventions and modular structure
- Setting up local testing and debugging workflows using sam local and Docker
- Automating build/package/deploy in CI pipelines with shell scripts and SAM CLI
- Designing multi-environment deployments (dev/stage/prod) with parameter overrides
Best practices
- Organize functions and shared code in clear directories and keep templates modular with nested stacks
- Define explicit IAM roles per function to enforce least privilege and avoid wildcard policies
- Use sam build and sam package/artifact storage (S3) in CI, keeping builds reproducible
- Test locally with sam local invoke and sam local start-api using Docker that matches runtime
- Manage environment-specific values with Parameters, Mappings, or separate parameter files
Example use cases
- Create a REST API backed by Lambda and DynamoDB with a SAM template and local test harness
- Migrate monolithic functions into smaller handlers, updating templates to use separate IAM roles
- Implement event-driven processing from S3 or SNS with retry and dead-letter configurations
- Add CI steps: sam build, sam package to S3, and sam deploy in a shell-based pipeline
- Set up multiple stages with parameterized templates and per-stage deployment buckets
FAQ
Yes—use Docker so sam local can emulate Lambda runtimes accurately for invoke and API testing.
How should I manage secrets and environment variables?
Keep secrets out of templates; use Parameter Store, Secrets Manager, or encrypted deployment artifacts and reference them via secure parameters.
Can I deploy multiple environments from one template?
Yes—use Parameters or separate parameter files and distinct S3 buckets/stacks per environment to avoid cross-environment interference.