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).
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.
If you have a feature request or an issue, please let me know on Github
If you want to add more snippets, your contribution is more than welcome!