minamijoyo / tfupdate

Update version constraints in your Terraform configurations
MIT License
556 stars 23 forks source link

Support a new required_providers syntax introduced in Terraform v0.12.20 #14

Closed minamijoyo closed 4 years ago

minamijoyo commented 4 years ago

Terraform v0.12.20 introduced a slightly different required_providers syntax. We should support it.

https://github.com/hashicorp/terraform/pull/23843

terraform {
  required_providers {
    foo = {
      version = ">=1.0.0"
    }
  }
}
minamijoyo commented 4 years ago

This syntax seems to be added for supporting provider source.

https://www.hashicorp.com/blog/adding-provider-source-to-hashicorp-terraform/

However, the provider source feature has not been merged into upstream. (maybe v0.13?) It is probably better to wait until provider source syntax is available.