terraformerjs
v1.0.7
Published
<p align="center"> <a href="https://standardjs.com"><img src="https://img.shields.io/badge/code_style-standard-brightgreen.svg" alt="Standard - JavaScript Style Guide"></a> </p> A wrapper around the terraform cli. Currently implemented the init, apply a
Downloads
4
Readme
Terraformerjs
Usage
JS
'use strict'
const Terraformerjs = require('Terraformerjs')
const terraformer = new Terraformerjs({silent: true, location: './test/terraform'})
terraformer.init({options: {'plugin-dir': '~/go/bin/'}})
.then(() => terraformer.plan())
.then((data) => console.log(data))
.catch((err) => console.log(err))
Configuration
Terraformerjs Options
- options.terraform.location:
- Location of the terraform binary to use when calling the commands
- location: Location of the terraform files that you want to run the command against. Also the cwd for any of the calls being used.