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.3.tar.gz
(14.6 kB
view hashes)
Built Distribution
tftool-0.0.3-py2.py3-none-any.whl
(10.7 kB
view hashes)
Close
Hashes for tftool-0.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe47a5429e06e5e8a767172c817127e713b794df49876be952d945c8753711ed |
|
MD5 | 611a880b9134f41beaafe22dcb83e296 |
|
BLAKE2b-256 | 257105f7143097e1677127c47bc82833f5aa25363c8afe4f2889c5433563b2b5 |