Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/BarnabyShearer/tftool
Ergonomic utilities for the terraform CLI.
https://github.com/BarnabyShearer/tftool
terraform
Last synced: 3 months ago
JSON representation
Ergonomic utilities for the terraform CLI.
- Host: GitHub
- URL: https://github.com/BarnabyShearer/tftool
- Owner: BarnabyShearer
- License: mpl-2.0
- Created: 2021-11-26T12:21:18.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-07T09:04:53.000Z (over 1 year ago)
- Last Synced: 2024-03-15T01:23:38.938Z (8 months ago)
- Topics: terraform
- Language: Python
- Homepage: https://tftool.readthedocs.io/en/latest/
- Size: 58.6 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
- jimsghstars - BarnabyShearer/tftool - Ergonomic utilities for the terraform CLI. (Python)
README
..
Autogenerated by https://github.com/BarnabyShearer/meta======
tftool
======
.. image:: https://readthedocs.org/projects/tftool/badge/?version=latest
:target: https://tftool.readthedocs.io/en/latest/
.. image:: https://img.shields.io/pypi/v/tftool?color=success
:target: https://pypi.org/project/tftool
.. image:: https://img.shields.io/docker/v/barnabyshearer/tftool/latest?color=success&label=docker
:target: https://hub.docker.com/repository/docker/barnabyshearer/tftoolErgonomic utilities for the terraform CLI.
Install
-------.. code-block:: bash
python3 -m pip install tftool
Usage
-----.. code-block:: bash
# 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