tfren

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

README

Terraform Rename (tfren)

Terraform Rename (tfren) is a tool to rename Terraform files using the resource type and name.

Currently it runs only in the current directory and does not recurse into subdirectories.

tfren assumes you have one resource per file and uses the the first line (e.g. resource "azurerm_virtual_network" "sandbox-vnet" {) to build the file name (which will be resource.azurerm_virtual_network.sandbox-vnet.tf in this case).

Installation

On Linux & macOS using Homebrew
brew install obay/tap/tfren
On Windows using Scoop
scoop bucket add obay https://github.com/obay/scoop-bucket.git
scoop install obay/tfren

Usage

Simply switch to the directory containing your Terraform files and run tfren.

tfren

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL