commonplace
  • Commonplace
  • AWS
    • Control Tower
      • Building a Scalable and Secure Multi-VPC AWS Network Infrastructure
    • Talks / Articles
      • Encrypting Everything with AWS (SEP402)
      • The Tension Between Absolutes & Ambiguity in Security (SEC310)
      • Best practices for authoring AWS CloudFormation (DOP302-R1)
    • Useful Links
    • Notes
      • awscli
      • Cloudformation
        • Using Parameters
  • Infrastructure Security
    • Amazon Web Services
      • Tools
    • Tools
  • Security
    • Articles
      • If You're Not Doing Continuous Asset Management You're Not Doing Security | Daniel Miessler
      • Living Off the Land
        • Living Off The Land: Part 2
    • Cryptography
      • Shamir Secret Sharing Algorithm
    • Distros
      • REMnux
    • DoD
    • Email
    • GPG
    • Shodan
    • SSH
  • Resources
    • AWS Toolbox
    • CTF
      • AWS
    • Dev Setup
      • Windows Terminal
    • Documentation
      • MOCK Press Release Template
      • Design Document Template
    • Docker
      • Notes
      • Configure Docker w/TLS for WSL
    • Kubernetes
      • Raspberry Pi 4 (4GB) Cluster
    • Linux
      • zsh config
      • Users and Groups
    • Python
      • AWS
        • Lambda
      • Random Strings
    • Security News
    • Tools
    • Unity SSDLC
    • vscode
      • Cloudformation
    • Windows
      • WSL2
        • Scratchpad
        • Install a GUI (xfce)
        • Creating Additional WSL2 Instances
    • Youtubers
      • youtube-dl snippets
  • Lab
    • Building a Better Workstation
      • Notes / Guide
  • Misc
    • Notes
      • youtube-dl
  • Recipes
Powered by GitBook
On this page

Was this helpful?

  1. Resources
  2. vscode

Cloudformation

Level up your AWS CloudFormation game

PreviousvscodeNextWindows

Last updated 5 years ago

Was this helpful?

{
    "indenticator.inner.showHighlight": true
}

Inside your Git repositories that contain your CloudFormation templates, create a .editorconfig file at the root directory that looks like this:

# .editorconfig

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true

# Keeps CloudFormation YAML files standard
[*.yaml]
indent_style = space
indent_size = 2
trim_trailing_whitespace = true

Prerequisite: Install cfn-lint before vscode-cfn-lint

python -m pip install cfn-lint

Add the following to enable the extra highlighting of the block located at the current cursor position.

user setting
https://marketplace.visualstudio.com/items?itemName=SirTori.indenticatormarketplace.visualstudio.com
https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfigmarketplace.visualstudio.com
Also see: https://editorconfig.org/
https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yamlmarketplace.visualstudio.com
https://marketplace.visualstudio.com/items?itemName=oderwat.indent-rainbowmarketplace.visualstudio.com
https://marketplace.visualstudio.com/items?itemName=Tyriar.sort-linesmarketplace.visualstudio.com
https://marketplace.visualstudio.com/items?itemName=kddejong.vscode-cfn-lintmarketplace.visualstudio.com