Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>AWS Serverless Application Model (SAM) SnippetsNew to Visual Studio Code? Get it now.
AWS Serverless Application Model (SAM) Snippets

AWS Serverless Application Model (SAM) Snippets

Danny Steenman

towardsthecloud.com
|
797 installs
| (1) | Free
Adds snippets for all the AWS Serverless Application Model (SAM) resources in VS Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

AWS Serverless Application Model (SAM) Snippets for VS Code

Installs Rating

This extension adds YAML snippets for all AWS Serverless Application Model (SAM) resources into Visual Studio Code.

[!TIP] AWS Done Right: Ship Faster, More Securely, at Lower Cost! Our AWS CDK Landing Zone Service helps B2B startups & enterprises achieve SOC 2 compliance 90% faster, reclaim 30% of developer capacity for product innovation while eliminating six-figure Cloud Engineering costs.

Discover how we deliver 10x AWS infrastructure value while cutting costs.

Book your free intro call

☁️ Learn more how we help businesses succeed on AWS Cloud...

AWS promises simplicity but delivers complexity. Businesses struggle with security risks and compliance requirements that divert developers from core product work.

Without AWS expertise, you face vulnerabilities, technical debt, and market delays while competitors race ahead.

Traditional consultancies worsen this by prioritizing billable hours over outcomes.

We take the opposite approach, focusing exclusively on business outcomes by eliminating AWS complexity, accelerating your developers, and securing your infrastructure through:

Deploying a Secure Landing Zone

  • Multi-account architecture with strict security boundaries
    • 100% score on CIS AWS Foundation Benchmark
    • 96% rating on AWS foundational security best practices
  • Manage user access securely on AWS via Single Sign-On (SSO)
  • Full AWS CDK implementation (Infrastructure as Code)
  • Multi-region deployments supported
  • Cross-account monitoring and security alerts
  • View our Roadmap for all implemented and upcoming features

Upskilling and accelerating your developers

  • They get access to our production-ready, security-hardened AWS CDK components
  • They receive AWS best practices guidance to prevent technical debt

Providing support and maintenance

  • Landing Zone gets updates and security patches
  • Priority Slack/Teams support for infrastructure challenges
  • Quarterly security and cost optimization assessments to stay compliant and reduce AWS costs

What This Means For Your Business

  • 30% Lower TCO: Cut Total Cost by 40% through right-sized resources while eliminating the $150K+ cost of a specialized AWS hire.
  • Accelerate Development: Redirect 30% of engineering time from infrastructure to revenue-generating features with pre-built, compliant CDK components.
  • Compliance-Ready Infrastructure: Meet security requirements from day one with architecture that speeds up audit preparation by 90% for SOC 2, HIPAA, and other security frameworks.

All of this is included in a fixed monthly subscription. No lock-in, no large upfront costs, just predictable monthly pricing.

Book a free call to see how we deliver 10x AWS infrastructure value at a fraction of a Cloud Engineer's cost.

Book your free introduction call


Features

  1. Adds support for the following SAM resource types:
    AWS::Serverless::Api
    AWS::Serverless::Application
    AWS::Serverless::Connector
    AWS::Serverless::Function
    AWS::Serverless::GraphQLApi
    AWS::Serverless::HttpApi
    AWS::Serverless::LayerVersion
    AWS::Serverless::SimpleTable
    AWS::Serverless::StateMachine
  1. Includes intrinsic functions, conditions, and a variety of parameter types.
  2. Utilizes placeholders for quick navigation within the properties of each resource.
  3. Provides documentation links for each resource.
  4. Available on the Open VSX Registry for Gitpod support.

Usage

  • Step 1. Install this extension
  • Step 2. create a .yml file to start working on your AWS SAM project.
  • Step 3. Check in the bottom right-hand corner of the VS Code editor that the file type is listed as "YAML".
  • Step 4. To start with the basic template structure, type sam to get the YAML formatted template fragment.
  • Step 5. Start adding resources in the resource section by using their prefix name e.g. serverless-api equals resource type AWS::Serverless::Api

Note: Once you start typing a prefix (explained in step 5), the corresponding snippet will show up in the dropdown menu. If this doesn't happen automatically, press ctrl + space to invoke IntelliSense and search for the prefix of the resource type that you want to add (as listed in step 5).


AWS CloudFormation Snippets for VS Code

If you use AWS CloudFormation to manage your infrastructure as code, check out the CloudFormation Snippets VS Code extension. This extension provides comprehensive coverage, including snippets for:

  • All AWS CloudFormation resources
  • All AWS Serverless Application Model (SAM) resource types

The snippets support both YAML and JSON CloudFormation templates, streamlining your infrastructure development workflow.

Key features include:

  • Autocomplete by simply typing the resource name (e.g., ec2-instance)
  • Intrinsic functions, conditions, and a wide variety of parameter types
  • Placeholders for quick navigation within each resource
  • Inline documentation links for each resource
  • Automatic weekly updates with the latest CloudFormation Resource Specification

Support

If you have a feature request or an issue, please let me know on Github

Author

Danny Steenman

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft