hydraform
v0.1.5
Published
Modular infrastructure built on terraform.
Downloads
2
Readme
hydraform
Build tool and npm module management for terraform.
Installation
$ npm install hydraform -g
Setup
Create a module by running npm init
and then placing terraform files in a hydra
directory. Then just use npm to install modules.
Build step
Hydraform builds [name].tf.js files that export an object into [name]_override.tf.json files. .tf.js can embed functions in the object. These functions are passed the opts that are passed to hydraform. The hydra directory along with the built files is place in the hydra_modules
directory.
Usage
In any directory with a hydra dir a package.json you can run.
terraform apply $(hydraform)
API
hydraform(module, opts)
module
- npm module name for a hydra package to includeopts
- options to pass to .tf.js files in hydra directory
License
MIT