GithubHelp home page GithubHelp logo

asvreddy / tfm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hashicorp-services/tfm

0.0 0.0 0.0 4.13 MB

tfm (terraform migrate) is an open source tool to help customers migrate from Terraform Community Edition to TFC/TFE and to and from TFE and TFC

Home Page: https://hashicorp-services.github.io/tfm/

License: Mozilla Public License 2.0

Shell 4.53% Go 91.35% Makefile 0.22% HCL 3.90%

tfm's Introduction

tfm

TFM

HashiCorp Implementation Services (IS) has identified a need to develop a purpose built tool to assist our engagements and customers during:

  • Terraform open source / community edition / core to Terraform Cloud (TFC) & Terraform Enterprise (TFE)
  • TFE to TFC
  • TFC to TFE
  • 1 TFC Organization to another TFC Organization
  • TFE Server / Organization Consolidation

Warning

This CLI does not have official support, but the code owners will work with partners and interested parties to provide assitance when possible. Check out our case studies.

Overview

This tool has been develop to assist HashiCorp Implementation Services, Partners and Customers with their migrations to HashiCorp services. Having a tool allows us the ability to offer a standardized offering to our customers.

Check out the full documentation at https://hashicorp-services.github.io/tfm/

Installation

Binaries are created as part of a release, check out the Release Page for the latest version.

Migration Type

There are differences between Terraform OSS / CE / Core migrations and Terraform Enterprise & Terraform Cloud Migrations. Accordingly this Readme has been split between two pages tfe migration and ce migration

tfm in a Pipeline

tfm can be used in a pipeline to automate migrations. There are a few considerations when using tfm in this manner.

  • For source and destination credentials use environment variables from the pipeline's secrete manager or other secure means. Don't embed these credentials in tfm configuration files
  • Several tfm commands require confirmation before proceeding, which are listed below. To override these in a pipeline, add the --autoapprove flag.
    • copy workspaces Only when all workspaces are going to be migrated due to no workspace list, or map defined.
    • copy workspaces --state --last
    • delete workspace
    • delete workspaces-vcs
    • nuke

Architectural Decisions Record (ADR)

An architecture decision record (ADR) is a document that captures an important architecture decision made along with its context and consequences.

This project will store ADRs in docs/ADR as a historical record.

More information about ADRs.

To build

make build-local
./tfm -v

-or-

go run . -v

To release

To create a new release of TFM

  • Use GitHub Action Release tfm
  • Specify a version number. Please follow semantic versioning for the release.

This action will do the following steps

  • Compile TFM for Linux, Mac, Windows with amd64 and arm64 versions
  • Upload the artifacts
  • Create a new release + tag on the repo at the current main

Reporting Issues

If you believe you have found a defect in tfm or its documentation, use the GitHub issue tracker to report the problem to the tfm maintainers.

tfm's People

Contributors

josh-tracy avatar carljavier avatar jeffmccollum avatar dependabot[bot] avatar straubt1 avatar carlosvilleg 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.