Skip to content

A CLI application to determine the required terraform version

Notifications You must be signed in to change notification settings

ikorchynskyi/terraform-version-inspect

Repository files navigation

terraform-version-inspect

A CLI application to determine the required terraform version

Does the shallow terraform project parsing to provide the required version. The list of available versions is taken from https://releases.hashicorp.com/.

Usage

    terraform-version-inspect [flags]

Flags

        --debug             turn on debug logging
        --dir string        path that contains terraform configuration files (default ".")
        --registry string   ensure the terraform image being available in the specified registry
    -h, --help              help for terraform-version-inspect

Example

$ cat test.tf
terraform {
    required_version = "~> 1.3, < 1.4"
}
terraform {
    required_version = ">= 1.2.31"
}
$ terraform-version-inspect --dir '.'
1.3.9

About

A CLI application to determine the required terraform version

Resources

Stars

Watchers

Forks

Packages