Source profileQuality 90/100

awslabs/agent-plugins/plugins/aws-serverless/skills/aws-serverless-deployment/SKILL.md

aws-serverless-deployment

AWS SAM and AWS CDK deployment for serverless applications. Triggers on phrases like: use SAM, SAM template, SAM init, SAM deploy, CDK serverless, CDK Lambda construct, NodejsFunction, PythonFunction, SAM and CDK together, serverless CI/CD pipeline. For general app deployment with service selection, use deploy-on-aws plugin instead.

Source repository stars
868
Declared platforms
0
Static risk flags
1
Last source update
2026-08-25
Source checked
2026-08-25

Decision brief

What it does: where it fits

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.

Best for

    Not for

    • Tasks that require unconfirmed production actions or broad system permissions.
    • Environments where the pinned source and install steps cannot be inspected.

    Compatibility matrix

    Platform support, with evidence labels

    PlatformStatusEvidenceWhat to check
    CodexNot declaredNo explicit evidencePortability before use
    Claude CodeNot declaredNo explicit evidencePortability before use
    CursorNot declaredNo explicit evidencePortability before use
    Gemini CLINot declaredNo explicit evidencePortability before use
    Open the compatibility checker

    Installation

    Inspect first. Install second.

    The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

    Source-detected install commandSource
    npx skills add https://github.com/awslabs/agent-plugins --skill "plugins/aws-serverless/skills/aws-serverless-deployment"
    Safe inspection promptEditorial

    Inspect the Agent Skill "aws-serverless-deployment" from https://github.com/awslabs/agent-plugins/blob/a35c295c62452468446d3a3fa7e2590cd27474ab/plugins/aws-serverless/skills/aws-serverless-deployment/SKILL.md at commit a35c295c62452468446d3a3fa7e2590cd27474ab. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

    Workflow

    What the source asks the agent to do

    1. 01

      AWS CLI Setup

      This skill requires that AWS credentials are configured on the host machine:

      This skill requires that AWS credentials are configured on the host machine:Verify access: Run aws sts get-caller-identity to confirm credentials are valid
    2. 02

      SAM CLI Setup

      Verify: Run sam --version

      Verify: Run sam --version
    3. 03

      Container Runtime Setup

      1. Install a Docker compatible container runtime: Required for samlocalinvoke and container-based builds 2. Verify: Use an appropriate command such as docker --version or finch --version

      Install a Docker compatible container runtime: Required for samlocalinvoke and container-based buildsVerify: Use an appropriate command such as docker --version or finch --version1. Install a Docker compatible container runtime: Required for samlocalinvoke and container-based builds 2. Verify: Use an appropriate command such as docker --version or finch --version
    4. 04

      When to Load Reference Files

      Load the appropriate reference file based on what the user is working on:

      SAM project setup, templates, deployment workflow, local testing, or container images - see references/sam-project-setup.mdCDK project setup, constructs, CDK testing, or CDK pipelines - see references/cdk-project-setup.mdCDK Lambda constructs, NodejsFunction, PythonFunction, or CDK Function - see references/cdk-lambda-constructs.md
    5. 05

      Best Practices

      Do: Use saminit with an appropriate template for your use case

      Do: Use saminit with an appropriate template for your use caseDo: Set global defaults for timeout, memory, runtime, and tracing in the Globals sectionDo: Use samconfig.toml environment-specific sections for multi-environment deployments

    Permission review

    Static risk signals and limitations

    Reads files

    low · line 10

    The documentation asks the agent to read local files, directories, or repositories.

    Load the appropriate reference file based on what the user is working on:

    Evidence record

    Why each signal appears

    EvidenceSourceComputedTestedEditorial
    SignalValueEvidence typeMeaning
    Quality score90/100ComputedDocumentation, specificity, maintenance, and trust rules
    Repository stars868SourceRepository attention, not individual Skill quality
    Compatibility0 platformsSourceDeclared in the catalog source record
    Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

    Pinned source

    Provenance and original SKILL.md

    Repository
    awslabs/agent-plugins
    Skill path
    plugins/aws-serverless/skills/aws-serverless-deployment/SKILL.md
    Commit
    a35c295c62452468446d3a3fa7e2590cd27474ab
    License
    Apache-2.0
    Collected
    2026-08-25
    Default branch
    main
    View the original SKILL.md

    AWS Serverless Deployment

    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.

    When to Load Reference Files

    Load the appropriate reference file based on what the user is working on:

    Best Practices

    SAM

    • Do: Use sam_init with an appropriate template for your use case
    • Do: Set global defaults for timeout, memory, runtime, and tracing in the Globals section
    • Do: Use samconfig.toml environment-specific sections for multi-environment deployments
    • Do: Use sam build --use-container when native dependencies are involved
    • Don't: Copy-paste templates from the internet without understanding the resource configuration
    • Don't: Hardcode resource ARNs or account IDs in templates — use !Ref, !GetAtt, and !Sub

    CDK

    • Do: Use TypeScript — type checking catches errors at synthesis time, before any AWS API calls
    • Do: Prefer L2 constructs and grant* methods over L1 and raw IAM statements
    • Do: Separate stateful and stateless resources into different stacks; enable termination protection on stateful stacks
    • Do: Commit cdk.context.json to version control — it caches VPC/AZ lookups for deterministic synthesis
    • Do: Write unit tests with aws-cdk-lib/assertions; assert logical IDs of stateful resources to detect accidental replacements
    • Do: Use cdk diff in CI before every deployment to review changes
    • Don't: Hardcode account IDs or region strings — use this.account and this.region
    • Don't: Use cdk deploy directly in production without a pipeline
    • Don't: Skip cdk bootstrap — deployments will fail without the CDK toolkit stack

    Configuration

    AWS CLI Setup

    This skill requires that AWS credentials are configured on the host machine:

    Verify access: Run aws sts get-caller-identity to confirm credentials are valid

    SAM CLI Setup

    Verify: Run sam --version

    Container Runtime Setup

    1. Install a Docker compatible container runtime: Required for sam_local_invoke and container-based builds
    2. Verify: Use an appropriate command such as docker --version or finch --version

    AWS Serverless MCP Server

    Write 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.

    SAM Template Validation Hook

    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

    IaC framework selection

    Default: CDK

    Override syntax:

    • "use CloudFormation" → Generate YAML templates
    • "use SAM" → Generate YAML templates

    When not specified, ALWAYS use CDK

    Language selection for CDK

    Default: TypeScript

    Override syntax:

    • "use Python" → Generate Python code
    • "use JavaScript" → Generate JavaScript code

    When not specified, ALWAYS use TypeScript

    Error Scenarios

    Serverless MCP Server Unavailable

    • Inform user: "AWS Serverless MCP not responding"
    • Ask: "Proceed without MCP support?"
    • DO NOT continue without user confirmation

    Resources

    Frequently asked questions

    What to verify before installation and use

    What does the aws-serverless-deployment source document cover?

    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.

    How do I install aws-serverless-deployment?

    The source record exposes this install command: npx skills add https://github.com/awslabs/agent-plugins --skill "plugins/aws-serverless/skills/aws-serverless-deployment". Inspect the command and pinned source before running it.

    Which permission-related actions were detected?

    Static rules flagged read-files in the source; the page lists the matching lines and excerpts.

    Alternatives

    Compare before choosing