Ergonomic utilities for the terraform CLI.
Project description
Ergonomic utilities for the terraform CLI.
Install
python3 -m pip install tftool
Usage
# Force terraform to be a bit more Unix philosophy
alias tfplan="terraform plan -refresh=false -input=false -out=/tmp/plan > /dev/null && terraform show -json /tmp/plan"
alias tfapply="xargs -or0 terraform apply"
alias tfimport="xargs -or0L2 terraform import"
# Only create new resources
tfplan | tftool target --no-updates | tfapply
# Automatically import new resources if their name/index matches the id.
tfplan | tftool autoimport | tfimport
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tftool-0.0.2.tar.gz
(13.4 kB
view hashes)
Built Distribution
Close
Hashes for tftool-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b0553b607d2791f37d9e6d3722c112f11ea22226e4c0349d254be89109824cb |
|
MD5 | c435a7fd0b4209f2e31bb6d35a3f6c69 |
|
BLAKE2b-256 | af4924fecdcc0170a855224ceeb61cd075b57a7843d5d40ae807655728e15e2b |