Skip to main content

Ergonomic utilities for the terraform CLI.

Project description

https://readthedocs.org/projects/tftool/badge/?version=latest https://img.shields.io/pypi/v/tftool?color=success https://img.shields.io/docker/v/barnabyshearer/tftool/latest?color=success&label=docker

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tftool-0.0.3-py2.py3-none-any.whl (10.7 kB view details)

Uploaded Python 2Python 3

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

Hashes for tftool-0.0.3.tar.gz
Algorithm Hash digest
SHA256 30fbc450d42ce94675086eb3ec62bb617ca29afaaf29c05a116a55ddbb51e722
MD5 961ee841524514c513e08d4cd6c2e4a6
BLAKE2b-256 569ed6470a2de8c1632d87bb098a81fd9f1f9ae7a611731cdfaf680dcc3bb856

See more details on using hashes here.

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

Hashes for tftool-0.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fe47a5429e06e5e8a767172c817127e713b794df49876be952d945c8753711ed
MD5 611a880b9134f41beaafe22dcb83e296
BLAKE2b-256 257105f7143097e1677127c47bc82833f5aa25363c8afe4f2889c5433563b2b5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page