Skip to main content

Tf Restore Helper

Project description

PyPI Python Version License

Read the documentation at https://tf-restore-helper.readthedocs.io/ Tests Codecov

pre-commit Black

Features

  • Constructs Terraform import commands to assist an operator aligning a terraform state after volume restores have taken place by an external tool, which results in terraform misalignment.

  • Tool is currently only compatible with AWS volumes (PRs welcome) and is used at own risk. Operators that do not understand the terraform state file or what the produced commands will do, should not use this tool as a helper and proper state backup and recovery procedures should be well understood before making use of this.

Installation

You can install Tf Restore Helper via pip from PyPI:

$ pip install tf-restore-helper

Usage

Please see the Command-line Reference for details.

Examples of usage:

> tf-restore-helper --planfile tests/assets/plan.json
 2021-05-03 13:28:43 sbpltc1nplvdl botocore.credentials[79705] INFO Found credentials in environment variables.
 2021-05-03 13:28:46 sbpltc1nplvdl postrestoretfcli[79705]   WARNING THIS INFORMATION SHOULD BE USED ONLY IF YOU KNOW WHAT YOU ARE DOING!
 -----------Terraform volume alignment commands-----------
 terraform state rm "aws_ebs_volume.test-instance-volume-1"
 terraform state rm "aws_volume_attachment.test-instance-volume-1"

Contributing

Contributions are very welcome. To learn more, see the Contributor Guide.

License

Distributed under the terms of the MIT license, Tf Restore Helper is free and open source software.

Issues

If you encounter any problems, please file an issue along with a detailed description.

Credits

This project was generated from @cjolowicz’s Hypermodern Python Cookiecutter template.

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

tf-restore-helper-0.1.1.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

tf_restore_helper-0.1.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file tf-restore-helper-0.1.1.tar.gz.

File metadata

  • Download URL: tf-restore-helper-0.1.1.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for tf-restore-helper-0.1.1.tar.gz
Algorithm Hash digest
SHA256 19661f590c0fd442b8715dba99fd7ece6bf78e7d5e1e28437fd8e4b74b9e4533
MD5 9ff4e4b20a577e5dfcc636edcd37cb78
BLAKE2b-256 9d25273bbab863f07d436e361452b125ad5d1662e03250d7daed23a56504e7e7

See more details on using hashes here.

File details

Details for the file tf_restore_helper-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: tf_restore_helper-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for tf_restore_helper-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 49f3a86b82e86557c284cb89b7c0bfb342b348f018bc86d72580e54ab6d08f16
MD5 043cba4e5c06ebcd34dadf843a7394b2
BLAKE2b-256 eba9dca137b4f467863517729831758e21401b27d2f5804453a4dfe4a649e07b

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