https://github.com/stelligent/cfn-runner
This is a node.js utility for synchronously running CREATE, UPDATE, or DELETE on CloudFormation stacks.
https://github.com/stelligent/cfn-runner
Last synced: 8 months ago
JSON representation
This is a node.js utility for synchronously running CREATE, UPDATE, or DELETE on CloudFormation stacks.
- Host: GitHub
- URL: https://github.com/stelligent/cfn-runner
- Owner: stelligent
- License: mit
- Created: 2016-04-07T18:51:50.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2020-01-07T21:32:48.000Z (over 6 years ago)
- Last Synced: 2024-12-26T00:26:56.560Z (over 1 year ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 1
- Watchers: 6
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## cfn-runner
This is a node.js utility for synchronously running CREATE, UPDATE, or DELETE on CloudFormation stacks.
**Usage**
```
// Require the module
var CFNRunner = require('cfn-runner');
// Instantiate the runner. The arguments are (templateFile, config)
// config should be an object like:
// {'accessKeyId': XXXXXXX, 'secretAccessKey': XXXXXX, 'region': 'us-east-1'}
var runner = new CFNRunner('/a/cfn/template.json', '/a/file/containing/aws/config.json');
// Declare a callback function
var callback = function(err) {
if(err) {
console.log(err);
}
else {
console.log('success');
}
};
// Create or update the stack.
runner.deployStack(callback);
// Delete the stack
runner.deleteStack(callback);
```