An open API service indexing awesome lists of open source software.

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.

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);
```