Last active
May 28, 2018 12:38
-
-
Save aws-scripting-guy/5b7a936439d89098a4b4 to your computer and use it in GitHub Desktop.
CloudFormation template validation in Visual Studio Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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