Skip to content

Instantly share code, notes, and snippets.

@aws-scripting-guy
Last active May 28, 2018 12:38
Show Gist options
  • Save aws-scripting-guy/5b7a936439d89098a4b4 to your computer and use it in GitHub Desktop.
Save aws-scripting-guy/5b7a936439d89098a4b4 to your computer and use it in GitHub Desktop.
CloudFormation template validation in Visual Studio Code
// requirements
// aws cli has to be installed
// working AWS credentials file ~/.aws/credentials
// copy this file as tasks.json under the .vscode directory in your templates project directory
// open your CloudFormation template and hit Ctrl + Shift + B
{
"version": "0.1.0",
"command": "aws",
"isShellCommand": true,
"showOutput": "always",
"args": [
"cloudformation",
"validate-template",
"--template-body",
"file://${file}"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment