This repository contains a wrapper script for terraform, making it easy to inject variables into a terraform run from an ansible vault. Ditto a vagrant wrapper, making it easier to drive vagrant and terraform from a single encrypted source.
I follow standard python practices:
- pyenv is used to manage the python version
- Given the single package requirement, pip install -r requirements.txt is your friend, but first create a dedicated virtualenv.
-
VAULTFILE=/path/to/file VAULTPASS=yourvaultpassword python terrarist.py -a plan -x
-
VAULTFILE=/path/to/file VAULTPASS=yourvaultpassword python terrarist.py -a apply