simple-cfn
Version:
Simple AWS CloudFormation
56 lines (39 loc) • 2.01 kB
Markdown
from json or yaml files.
* Returns a Promise. Resolves when stack Create / Update is done, Rejects if there is an error.
* Checks if a template is valid
* Returns a Promise. Resolves when template is valid, Rejects if there is an error.
```bash
yarn global add simple-cfn
npm install -g simple-cfn
yarn add simple-cfn --dev
npm install simple-cfn --save-dev
```
```
Usage
simple-cfn deploy {stack name} {template} [--{param key}={param value}...]
simple-cfn deploy {stack name} {template} [--capability=CAPABILITY] [--file=/path/to/file] [--stack-role-name role-name ]
simple-cfn check {template}
simple-cfn outputs {stack name} {field name}
Examples
simple-cfn deploy stack-name template.js
simple-cfn deploy stack-name template.yml --ImageId=ami-828283 --VpcId=vpc-828283
simple-cfn deploy stack-name template.yml --file=/home/parameters.yml
simple-cfn check /home/parameters.yml
simple-cfn outputs stack-name field-name
```
This repo is licensed under [MIT](https://github.com/pbsladek/simple-cfn/blob/master/LICENSE)
[ ](./LICENSE)
Original work done by [Andy Day & contributors](https://github.com/andyday)
[ ](https://github.com/Nordstrom/cfn/blob/master/LICENSE)
[ ](./LICENSE-2)
simple-cfn makes the following AWS CloudFormation tasks simpler.
* If the stack already exists, it Updates; otherwise, it Creates.
* Monitors stack progress, logging events.
* Can read parameters