Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>CloudFormation SnippetsNew to Visual Studio Code? Get it now.

CloudFormation Snippets

Danny Steenman

|
32,357 installs
| (1) | Free
Adds autocompletion for all AWS CloudFormation resources. The snippets are updated automatically every week by fetching the data from the official AWS CloudFormation resource specification.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CloudFormation Snippets for VS Code

Marketplace Version Current Installs Rating

This VS Code extension adds autocompletion for all the resources that AWS CloudFormation supports. It get's updated automatically every week by fetching the resources from the official AWS CloudFormation resource specification.

New (Nov 2020)

  • Added a placeholder functionality so you can quickly jump to the next placeholder in the properties section with Tab.
  • Added matching documentation URLs in the description of every resource type.

Features

  1. This extension contains snippets for all available CloudFormation resources
  2. CloudFormation autocompletion for every resource (includes properties).
  3. Automatically updated every week after AWS updates their CloudFormation Resource Specification.
  4. Intrinsic functions + conditions are supported.
  5. Contains a whole bunch of parameter types.
  6. Quickly update the properties of each resource type using Tab.
  7. Every resource type contains the matching documentation URL in its description.

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

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).

CFN YAML snippet example


Support

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

Tips and tricks

If you want to boost your productivity even more with VS Code and CloudFormation. Have a look at this article that I wrote to help you level up your CloudFormation templating game!



        

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2019 Microsoft