GithubHelp home page GithubHelp logo

dg0026 / tfautomv Goto Github PK

View Code? Open in Web Editor NEW

This project forked from busser/tfautomv

0.0 0.0 0.0 12.43 MB

Generate Terraform moved blocks automatically for painless refactoring

Home Page: https://tfautomv.dev

License: Apache License 2.0

Go 98.81% Makefile 1.19%

tfautomv's Introduction

Automatic Terraform moved blocks

License Go Report Card tests-passing

When refactoring a Terraform codebase, you often need to write moved blocks. This can be tedious. Let tfautomv do it for you.

Why does this exist?

When you move a resource in your code, Terraform loses track of the resource's state. The next time you run Terraform, it will plan to delete the resource it has memory of and create the "new" resource it found in your refactored code.

tfautomv inspects the output of terraform plan, detects such creation/deletion pairs and writes a moved block so that Terraform now knows no deletion or creation is required.

Demo

This demo illustrates tfautomv's core features:

  • Generating moved blocks automatically for refactored code
  • Optionally doing a dry run
  • Optionally showing a detailed analysis

demo

Installation

See Getting started / Installation for instructions.

Usage

See Getting started / Tutorial for a hands-on guided introduction de tfautomv.

See Usage for a list of tfautomv's features.

The following versions of Terraform are supported:

  • 1.1.x and above by default
  • 0.13.x and above when using the -output=commands flag

How it works

See Design for details on how tfautomv works under the hood.

License

The code is licensed under the permissive Apache v2.0 license. Read this for a summary.

tfautomv's People

Contributors

busser avatar dixneuf19 avatar stangirard avatar renovate[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.