Skip to content

dannysteenman/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

Struggling with AWS complexity or stuck on-premise? Let's transform your cloud journey.

Schedule a call with me to find out how I can enhance your existing AWS setup or guide your journey from on-premise to the Cloud.

☁️ Discover more about my one-person business: Towards the Cloud

Hi, I'm Danny – AWS expert and founder of Towards the Cloud. With over a decade of hands-on experience, I specialized myself in deploying well-architected, highly scalable and cost-effective AWS Solutions using Infrastructure as Code (IaC).

When you work with me, you're getting a package deal of expertise and personalized service:

  • AWS CDK Proficiency: I bring deep AWS CDK knowledge to the table, ensuring your infrastructure is not just maintainable and scalable, but also fully automated.
  • AWS Certified: Equipped with 7 AWS Certifications, including DevOps Engineer & Solutions Architect Professional, to ensure best practices across diverse cloud scenarios.
  • Direct Access: You work with me, not a team of managers. Expect quick decisions and high-quality work.
  • Tailored Solutions: Understanding that no two businesses are alike, I Custom-fit cloud infrastructure for your unique needs.
  • Cost-Effective: I'll optimize your AWS spending without cutting corners on performance or security.
  • Seamless CI/CD: I'll set up smooth CI/CD processes using GitHub Actions, making changes a breeze through Pull Requests.

My mission is simple: I'll free you from infrastructure headaches so you can focus on what truly matters – your core business.

Ready to unlock the full potential of AWS Cloud?

Schedule your call


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