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.4.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file tftool-0.0.4.tar.gz.

File metadata

  • Download URL: tftool-0.0.4.tar.gz
  • Upload date:
  • Size: 14.7 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.4.tar.gz
Algorithm Hash digest
SHA256 3786f3a806e93bf634845fcbf2246b583bc398582993b91ce81aafe39f1862f3
MD5 939b5ee3f5e4f14e8015233d84c37700
BLAKE2b-256 b36b1a6bdcb61023ea1ff7eff7329eccb3125d04fbc56e592d37a1835b6ceb3f

See more details on using hashes here.

File details

Details for the file tftool-0.0.4-py2.py3-none-any.whl.

File metadata

  • Download URL: tftool-0.0.4-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.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7c7f3ccd7c8ac250428e2a8dff701354b8957d343a81c5b97c6dfe9157126186
MD5 4b1fa0e18fd141eba062b4e677d6bf79
BLAKE2b-256 a9fe590735c81f0b3650739556d559d6c7350bb8cc465d4cefaca56ecd8ba2c2

See more details on using hashes here.

Supported by

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