Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 912 Bytes

README.md

File metadata and controls

32 lines (21 loc) · 912 Bytes

cfn - Simple Cloud Formation for Node.js

CircleCI bitHound Overall Score

Install

$ npm install cfn --save-dev

Usage

Use cfn to create or update a Cloud Formation stack. It returns a promise. You can use Node.js modules or standard json for Cloud Formation Templates.

var cfn = require('cfn');


// Create or update (if it exists) the Foo-Bar stack with the template.js Node.js module.
cfn('Foo-Bar', __dirname + '/template.js')
    .then(function() {
        console.log('done');
    });
    
// Create or update the Foo-Bar stack with the template.json json template.
cfn('Foo-Bar', 'template.json');

// Delete the Foo-Bar stack
cfn.delete('Foo-Bar');