/vscode-cloudformation-snippets

This extension adds snippets for all the AWS CloudFormation resources into Visual Studio Code.

Primary LanguagePythonApache License 2.0Apache-2.0

AWS CloudFormation Snippets for VS Code

Installs Rating

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

Tip

Ready to unlock the full potential of your AWS infrastructure or make a smooth transition from on-premise?

Schedule a call with me to find out how we 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

Hey there! I'm Danny, the driving force behind Towards the Cloud, bringing over a decade of hands-on experience to the table. My specialty? Crafting rock-solid AWS infrastructures using IaC for both startups and enterprises.

I'm all about architecting and building distributed, scalable cloud-native systems using AWS CDK. My mission is simple: I'll help you supercharge your application by deploying well-architected, highly scalable and cost-effective cloud infrastructure.

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

  • AWS CDK Expertise: I bring deep AWS CDK knowledge to the table, ensuring your infrastructure is not just maintainable and scalable, but also fully automated.
  • Custom Solutions: Understanding that no two businesses are alike, I tailor cloud solutions to fit your unique needs perfectly.
  • Cost-Effective: I'll optimize your AWS spending without cutting corners on performance or security.
  • Direct Access: You work with me, not a team of managers. Expect quick decisions and high-quality work.
  • Seamless CI/CD: I'll set up smooth CI/CD processes using GitHub Actions, making changes a breeze through Pull Requests.

My ultimate goal is to transform your cloud infrastructure and give your business a serious boost.

Let's talk about how we can make that happen.

Schedule your call


New in version 5!

  • Added support for all the AWS 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

Features

  1. Comprehensive Coverage: Offers snippets for every AWS CloudFormation and AWS SAM resource available.
  2. Flexible Template Support: Seamlessly works with both YAML and JSON CloudFormation templates.
  3. Efficient Autocomplete: Simply type the resource name (e.g., ec2-instance) to instantly load the corresponding snippet for AWS::EC2::Instance.
  4. Rich Feature Set: Incorporates intrinsic functions, conditions, and diverse parameter types for robust template creation.
  5. Enhanced Navigation: Features placeholders that enable swift movement through resource properties.
  6. Resource Documentation: Each snippet is linked to its official AWS documentation, providing quick access to detailed information.
  7. Up-to-Date: Regularly refreshed on a weekly basis to reflect the latest CloudFormation Resource Specification.
  8. Gitpod Ready: Made available on the Open VSX Registry to ensure compatibility with Gitpod.

Usage

  • Step 1. Install this extension
  • Step 2. create a .yml file to start working on CloudFormation
  • 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 cfn to get the YAML formatted template fragment.
  • Step 5. Start adding resources in the resource section by using their prefix name e.g. autoscaling-autoscalinggroup equals resource type AWS::AutoScaling::AutoScalingGroup

CloudFormation Snippets example

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 Attributes (GetAtt) Cheat Sheet

Are you tired of endlessly searching for the available attributes of AWS CloudFormation resource types? Look no further!

I've created the ultimate AWS CloudFormation Attributes cheat sheet, designed to save you time and streamline your CloudFormation projects.

This comprehensive guide provides a single table overview of all available (900+) AWS resource types and their attributes, making it easier than ever to find the information you need. Whether a resource type has attributes or not, you'll know immediately with a clear "❌" mark for those without.


Support

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

Author

Danny Steenman