├── .eslintrc ├── LICENSE.md ├── README.md ├── bin ├── cfn-check.js └── scrape.js ├── data └── resources.json ├── lib ├── check │ ├── format.js │ ├── index.js │ ├── references.js │ └── resources.js └── parse.js ├── package.json ├── scrape.js └── test ├── checkFormatTest.js ├── checkReferencesTest.js ├── checkResourcesTest.js ├── notJSON.json ├── parseTest.js └── template.json /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "es6": true, 4 | "node": true 5 | }, 6 | "extends": "eslint:recommended", 7 | "rules": { 8 | "no-console": 0, 9 | "quotes": [2, "single"], 10 | "strict": [2, "global"] 11 | }, 12 | "globals": { 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | ===================== 3 | 4 | Copyright (c) 2015 Versent 5 | -------------------------------------------- 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 8 | 9 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 10 | 11 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 12 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # cfn-check 2 | 3 | A command-line tool for validating CloudFormation templates **quickly**. 4 | 5 | ## Overview 6 | 7 | [CloudFormation](https://aws.amazon.com/cloudformation/) is great. 8 | Unfortunately, the error handling leaves a bit to be desired. 9 | 10 | The [AWS CLI](https://aws.amazon.com/cli/) provided 11 | [`validate-template`](http://docs.aws.amazon.com/cli/latest/reference/cloudformation/validate-template.html) command only 12 | checks your 13 | [syntax](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-validate-template.html), not the actual resources, their properties, etc. This means you can *think* you're successfully creating a new stack, and still get a `CREATE_FAIL`. This tool aims to give you quick feedback so you spend less time banging your head against the CloudFormation Console. 14 | 15 | ## Installation 16 | 17 | npm install -g cfn-check 18 | 19 | ## Usage 20 | 21 | Usage: cfn-check [options]