Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support a configuration file to pin versions recursively #75

Open
nitrocode opened this issue Aug 11, 2022 · 0 comments
Open

Support a configuration file to pin versions recursively #75

nitrocode opened this issue Aug 11, 2022 · 0 comments

Comments

@nitrocode
Copy link

nitrocode commented Aug 11, 2022

It would be nice if tfupdate could support a configuration file to pin versions recursively. Then we could have a config in our mono infra repo and run a single command in a pre-commit hook and in our gh action to ensure we use the verified versions.

I was thinking of the following config, similar to tflint

#.tfupdate.hcl
tfupdate {
  recursive = true

  terraform {
    required_version = "> 1.0.0"

    providers = {
      "aws" = {
        source = "hashicorp/aws"
        version = "~> 4"
      }
      "tls" = {
        source = "hashicorp/tls"
        version = "~> 3"
      }
      # 50 other providers with specific versions
    }
  }
}

Then we can run the command without having to string together multiple commands

tfupdate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant