Skip to content

support .tf.json files #66

@jrobison-sb

Description

@jrobison-sb
  • Terraform itself supports .tf.json files, so tfupdate should support them as well. Currently it seems that it does not.
$ cat main.tf
terraform {
  required_version = "0.13.5"
}

$ cat main.tf.json 
{
  "terraform": {
    "required_version": "= 0.13.5"
  }
}

$ tfupdate terraform -v 0.14.11 -r ./

$ cat main.tf
terraform {
  required_version = "0.14.11"
}

$ cat main.tf.json 
{
  "terraform": {
    "required_version": "= 0.13.5"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions