@c6fc/terraform

0.0.4 • Public • Published

@c6fc/terraform

Link and use the Terraform binary with NPM.

Usage

npm install -p @c6fc/terraform

Set the tf_version config element in your package.json:

"config": {
	"tf_version": "0.15.4"
}
const terraform = require('@c6fc/terraform'); // Install and link Terraform 0.15.4

console.log(terraform); 

/* {
	cacheDir: <path to terraform cache>
	version: <the version of Terraform that's loaded>
	executablePath: <the path to the terraform executable>
} */

I created this package specifically for use with Sonnetry (@c6fc/sonnetry), but perhaps someone else will find it useful.

Readme

Keywords

none

Package Sidebar

Install

npm i @c6fc/terraform

Weekly Downloads

9

Version

0.0.4

License

MIT

Unpacked Size

4.57 kB

Total Files

5

Last publish

Collaborators

  • c6fc