From aws-serverless
Deploys serverless applications to AWS using SAM or CDK. Covers project scaffolding, IaC templates, CDK constructs, deployment workflows, and CI/CD pipelines.
How this skill is triggered — by the user, by Claude, or both
Slash command
/aws-serverless:aws-serverless-deployment [what are you deploying?][what are you deploying?]The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Deploy serverless applications to AWS using SAM or CDK. This skill covers project scaffolding, IaC templates, CDK constructs and patterns, deployment workflows, CI/CD pipelines, and SAM/CDK coexistence.
Deploy serverless applications to AWS using SAM or CDK. This skill covers project scaffolding, IaC templates, CDK constructs and patterns, deployment workflows, CI/CD pipelines, and SAM/CDK coexistence.
For Lambda runtime behavior, event sources, orchestration, observability, and optimization, see the aws-lambda skill.
Load the appropriate reference file based on what the user is working on:
sam_init with an appropriate template for your use caseGlobals sectionsamconfig.toml environment-specific sections for multi-environment deploymentssam build --use-container when native dependencies are involved!Ref, !GetAtt, and !Subgrant* methods over L1 and raw IAM statementscdk.context.json to version control — it caches VPC/AZ lookups for deterministic synthesisaws-cdk-lib/assertions; assert logical IDs of stateful resources to detect accidental replacementscdk diff in CI before every deployment to review changesthis.account and this.regioncdk deploy directly in production without a pipelinecdk bootstrap — deployments will fail without the CDK toolkit stackThis skill requires that AWS credentials are configured on the host machine:
Verify access: Run aws sts get-caller-identity to confirm credentials are valid
Verify: Run sam --version
sam_local_invoke and container-based buildsdocker --version or finch --versionWrite access is enabled by default. The plugin ships with --allow-write in .mcp.json, so the MCP server can create projects, generate IaC, and deploy on behalf of the user.
Access to sensitive data (like Lambda and API Gateway logs) is not enabled by default. To grant it, add --allow-sensitive-data-access to .mcp.json.
This plugin includes a PostToolUse hook that runs sam validate automatically after any edit to template.yaml or template.yml. If validation fails, the error is returned as a system message so you can fix it immediately. The hook requires SAM CLI and jq to be installed; if either is missing, validation is skipped with a system message. Users can disable it via /hooks.
Verify: Run jq --version
Default: CDK
Override syntax:
When not specified, ALWAYS use CDK
Default: TypeScript
Override syntax:
When not specified, ALWAYS use TypeScript
npx claudepluginhub awslabs/agent-plugins --plugin aws-serverlessDesign, build, deploy, test, and debug serverless applications on AWS Lambda with SAM CLI, Lambda Web Adapter, Event Source Mappings, and more. Triggers on serverless-related queries.
Bootstraps AWS SAM projects by generating template.yaml and samconfig.toml for new setups via sam init, migrates existing Lambda/CloudFormation code, validates sam build/deploy workflows, and configures sam local invoke testing.
Builds AWS serverless applications using SAM CLI: init new apps, build, deploy, local invoke Lambda functions, and fetch logs. Activates on SAM, serverless, or Lambda mentions.