Skip to content

towardsthecloud/vscode-cdk-snippets

Repository files navigation

AWS CDK Construct Snippets for VS Code

Installs Rating

This extension adds L1 Construct snippets from AWS CDK in Visual Studio Code.

Tip

Towards the Cloud runs the AWS foundation for modern product teams. This means your team ships faster, slashes AWS spend, and stay audit-ready without having to hire a platform squad.

Unsure where to start? Book a free AWS Account Review. We’ll analyse your AWS environment, hand you a security & cost report, and you decide whether to act on it yourself or have us execute. No pressure, no retainer required up front.

Book a Free AWS Account Review

☁️ See how we turn AWS chaos into a compliant, cost-efficient platform…

The problem: AWS complexity compounds fast

Ad‑hoc builds become 40–60% overspend, unmonitored security gaps put customer data at risk, and engineers burn out running infrastructure instead of shipping products.

Our managed foundation keeps you moving forward

  • Compliant Landing ZoneMulti-account AWS CDK deployment with 100% CIS benchmark coverage, centralized logging, and SSO-ready access control.
  • Production-ready CDK components – Pre-hardened building blocks so teams launch new services without reinventing best practices.
  • CI/CD with safe rollbacks – GitOps workflows and governed pipelines that let you release faster with confidence.
  • Quarterly cost & security reviewsCost Optimisation plus Security Reviews delivered proactively.
  • Fractional Cloud Engineer – On-demand expertise from an architect who implemented enterprise-grade AWS infrastructure for over a decade.

Outcomes our customers see

  • 30%+ lower AWS bill – Continuous oversight prevents expensive drift (30–60% documented savings).
  • SOC 2 / HIPAA acceleration – Guardrails, logging, and evidence packs ready on day one.
  • Audit-ready every quarter – Automated monitoring plus recurring reviews keep findings under control.
  • Faster product velocity – Engineers build features, not managing infrastructure.
  • Headcount leverage – A flexible retainer replaces the cost of a full-time platform team.

Proof: Y Combinator startup Accolade used our Landing Zone to earn SOC 2 in record time:

“We achieved a perfect security score in days, not months.” — Galen Simmons, CEO

Ready to see where your AWS account stands? Grab a spot while they’re available:

Book a Free AWS Account Review


New in version 2!

  • Added support for L1 constructs snippets in AWS CDK Python! Open up a CDK Python project and type l1 to trigger the L1 construct autocomplete.

Features

  1. Comprehensive Support: Seamlessly integrates all CloudFormation resources as L1 constructs within CDK, ensuring you have access to the latest AWS offerings.
  2. Effortless Autocomplete: Activate autocomplete with l1-<cloudformation-resource> to streamline your coding process.
  3. Weekly Updates: Construct snippets are refreshed weekly in line with AWS's updates to their CloudFormation Resource Specification, keeping you on the cutting edge.
  4. Placeholder Support: Navigate efficiently through resource properties using the Tab key, thanks to built-in placeholder functionality.
  5. Required Property Highlighting: Easily identify mandatory properties, highlighted with a // required comment for your convenience.
  6. Documentation at Your Fingertips: Access the corresponding CDK resource documentation directly from the autocomplete prompt, enriching your development experience.

Usage

  1. Install the CDK Snippets extension in VS Code.
  2. Open your CDK project (TypeScript or Python).
  3. Add L1 constructs using their short prefix (e.g. l1-s3-bucket for s3.CfnBucket).

Example:

CDK Construct Snippets example

Note: Once you start typing a prefix (explained in step 3), the corresponding snippet shows 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 3).


AWS CDK Examples

Explore our AWS CDK Examples repository - a rich collection of TypeScript-based solutions that bring your cloud architecture to life. Crafted by a seasoned AWS professional.


Support

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

Author

Danny Steenman

Sponsor this project

 

Contributors 2

  •  
  •  

Languages