A Terraform CLI wrapper built by the Bandwidth Incubator.
- Expose a command for each infrastructure-related lifecycle event in an Incubator-style project.
- Each command should protect against accidental non-automated actions that impact infrastructure.
- Don't do anything other than wrap the Terraform CLI
- Be platform independent
Note: Still not tested on any OS other than Windows. Please submit an issue if there are problems!
This code base will be greatly simplified once Terraform allows for environment variable interpolation in tfvars
files.
gem install genesis
- genesis apply
- Apply infrastructure changes to match plan
- genesis destroy
- Destroy infrastructure Terraform knows about
- genesis help [COMMAND]
- Describe available commands or one specific command
- genesis plan
- Output an execution plan
- genesis refresh
- Reconcile state with the real-world infrastructure
- genesis show
- Output contents of the state file
Note:
All of these commands assume that the current working directory contains a
terraform
directory where terraformtf
,tf.json
, andtfvars
files are. This is the directory passed to the Terraform cli.
- [--prompt], [--no-prompt]
- Prompt before executing dangerous commands (Default: true)