mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-02-19 07:01:10 -05:00
Instead of using providers.tf as the default output file for the upgrader, we now default to versions.tf. This means that if the configuration has no `required_providers` blocks at all, or has multiple, the provider version requirements will be stored in the versions.tf file. We now also update the versions.tf file to set a `required_version` attribute in the first `terraform` block, with value ">= 0.13". This is similar to the behaviour of the 0.12upgrade command, and signals that the configuration should not be used with older versions of Terraform.
18 lines
481 B
HCL
18 lines
481 B
HCL
terraform {
|
|
required_providers {
|
|
something = {
|
|
# TF-UPGRADE-TODO
|
|
#
|
|
# No source detected for this provider. You must add a source address
|
|
# in the following format:
|
|
#
|
|
# source = "your-registry.example.com/organization/something"
|
|
#
|
|
# For more information, see the provider source documentation:
|
|
#
|
|
# https://www.terraform.io/docs/configuration/providers.html#provider-source
|
|
}
|
|
}
|
|
required_version = ">= 0.13"
|
|
}
|