naviat / terraform-lock-checker

๐Ÿ”’For looking terraform/terragrunt locked state then unlock.๐Ÿ—๏ธ

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Terraform/Terragrunt Lock Checker

This is a CLI tool to list and manage Terraform/Terragrunt locks in AWS DynamoDB and Azure Blob Storage.

Installation

You can install the tool using go get:

go get github.com/naviat/terraform-lock-checker

Usage

  1. Set the appropriate environment variables for your cloud provider:

For AWS:

export AWS_REGION=your-aws-region

For Azure:

export AZURE_STORAGE_ACCOUNT=your-storage-account
export AZURE_STORAGE_KEY=your-storage-key
  1. Then, run the CLI tool:

terraform-lock-checker

The tool will auto-detect the environment and prompt you to unlock any detected lock items.

  1. Install the Tool:

Others can now install your tool using go get.

go get github.com/naviat/terraform-lock-checker

About

๐Ÿ”’For looking terraform/terragrunt locked state then unlock.๐Ÿ—๏ธ

License:MIT License


Languages

Language:Go 100.0%