GithubHelp home page GithubHelp logo

onlykumarabhishek / terraform-state-mover Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mbode/terraform-state-mover

0.0 0.0 0.0 759 KB

Refactoring Terraform code has never been easier.

License: MIT License

Go 100.00%

terraform-state-mover's Introduction

Go Report Card Actions Status codecov Dependabot Status License Release

Terraform State Mover

Helps refactoring terraform code by offering an interactive prompt for the terraform state mv command.

Installation

Using homebrew:

brew install mbode/tap/terraform-state-mover

Alternatively, get a pre-built binary from the latest release or build it yourself using

go get github.com/mbode/terraform-state-mover

Usage

terraform-state-mover # inside a Terraform root directory

Extra arguments after a -- are passed to the terraform plan call. This makes the following possible:

terraform-state-mover -- -var key=value  # setting variables
terraform-state-mover -- -var-file=variables.tfvars  # using variable files
terraform-state-mover -- -refresh=false  # skip state refresh

Hint: If terraform-state-mover is used with the Google Cloud Platform provider and remote state, it is recommended to use --delay=2s, otherwise API rate limits error might occur.

Key mapping

Key Action
Select
Next
Previous
Page Down
Page Up

Demo

Terraform version compatibility

< 0.10.1 0.10.1…8 0.11.0…15 0.12.0…31 0.13.0…7 0.14.0…11 0.15.0…5 1.0.0…5

Contributing

Pull requests are welcome. Please make sure to update tests as appropriate.

License

MIT

terraform-state-mover's People

Contributors

mbode avatar xanonid avatar dependabot-preview[bot] avatar pascal-hofmann avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.