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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tftool-0.0.3.tar.gz.
File metadata
- Download URL: tftool-0.0.3.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30fbc450d42ce94675086eb3ec62bb617ca29afaaf29c05a116a55ddbb51e722
|
|
| MD5 |
961ee841524514c513e08d4cd6c2e4a6
|
|
| BLAKE2b-256 |
569ed6470a2de8c1632d87bb098a81fd9f1f9ae7a611731cdfaf680dcc3bb856
|
File details
Details for the file tftool-0.0.3-py2.py3-none-any.whl.
File metadata
- Download URL: tftool-0.0.3-py2.py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe47a5429e06e5e8a767172c817127e713b794df49876be952d945c8753711ed
|
|
| MD5 |
611a880b9134f41beaafe22dcb83e296
|
|
| BLAKE2b-256 |
257105f7143097e1677127c47bc82833f5aa25363c8afe4f2889c5433563b2b5
|