vscode-cloudformation-snippets
vscode-cloudformation-snippets copied to clipboard
This extension adds snippets for all the AWS CloudFormation resources into Visual Studio Code.
CloudFormation Snippets for VS Code
This extension adds snippets for all the AWS CloudFormation resources into Visual Studio Code.
[!TIP] If you're looking for expertise to elevate your cloud infrastructure, then don't hesitate to get in touch with me!
📚 Discover more about us
Towards the Cloud is a one-person agency with over 9 years of extensive hands-on experience in architecting and building highly scalable distributed systems on AWS Cloud using Infrastructure as Code for startups and enterprises.
Maximize your development speed by harnessing our expertise in crafting high-performance Cloud infrastructures.
Why Choose Towards the Cloud?
- Expertise in AWS CDK: Leverage the full power of AWS Cloud Development Kit (AWS CDK) with our deep expertise. We architect and build infrastructure as code (IaC) solutions that are maintainable, scalable, and fully automated.
- Tailored Solutions: Your business is unique, and so are your cloud needs. We provide personalized consultations and solutions tailored to perfectly align with your project requirements and business goals.
- Cost-Effective and Efficient: Benefit from our streamlined processes and deep AWS knowledge to optimize costs without compromising on performance or security.
- One-on-One Attention: As a one-person agency, Towards the Cloud guarantees you receive dedicated support and expertise directly from an AWS Cloud Engineer. This ensures high-quality deliverables and swift decision-making.
- Seamless CI/CD: Empower your team to manage infrastructure changes confidently and efficiently through Pull Requests, leveraging the full power of GitHub Actions.
New in version 4!
- Support for CloudFormation resource type snippets in JSON format! This means you can now generate CloudFormation resource type snippets in both YAML and JSON formats!
- To get started: Open up a JSON file, type an AWS Resource
prefixin the same manner as you do for the YAML snippets and it will show the autocomplete!
- To get started: Open up a JSON file, type an AWS Resource
Features
- Supports all resources that are defined by CloudFormation
- CloudFormation autocompletion for every resource (includes properties) in both YAML and JSON formats.
- The CloudFormation snippets are automatically updated every week after AWS updates their CloudFormation Resource Specification.
- Intrinsic functions + conditions are supported.
- Contains a whole bunch of parameter types.
- Has builtin support for placeholders. This means you can quickly jump from property to property in each resource by using
Tab - Every resource type contains the matching documentation URL in its description.
- Support for Gitpod by publishing this extension to the Open VSX Registry
Usage
- Step 1. Install this extension
- Step 2. create a
.ymlfile 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-autoscalinggroupequals resource typeAWS::AutoScaling::AutoScalingGroup

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 + spaceto 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
It can be difficult to find out which attributes are available for each AWS CloudFormation resource type. Therefore I made an AWS CloudFormation Attributes cheat sheet that lists the attributes in a single table overview to easily find the attributes.
Support
If you have a feature request or an issue, please let me know on Github
Contributing
If you want to add more snippets, your contribution is more than welcome!
Review the Contributing Guidelines.