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.2.tar.gz (13.4 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.2-py2.py3-none-any.whl (9.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: tftool-0.0.2.tar.gz
  • Upload date:
  • Size: 13.4 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.2.tar.gz
Algorithm Hash digest
SHA256 35917cfa3b5b7b8205a1df68b324f1130b2c10825330bccdc0b978831ea957eb
MD5 bd3a7e5cd4bfe2b8b09b1ded571c9444
BLAKE2b-256 0e6523bd8be48cde1210b02f9975753f26f5691fa696fefc3942752b82487bf5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tftool-0.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.4 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.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7b0553b607d2791f37d9e6d3722c112f11ea22226e4c0349d254be89109824cb
MD5 c435a7fd0b4209f2e31bb6d35a3f6c69
BLAKE2b-256 af4924fecdcc0170a855224ceeb61cd075b57a7843d5d40ae807655728e15e2b

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