Terraform

Terraform

Made by DeepSource

terraform declarations without require_version TF-L0046

Bug risk
Major

The required_version setting can be used to constrain which versions of the Terraform CLI can be used with your configuration. If the running version of Terraform doesn't match the constraints specified, Terraform will produce an error and exit without taking any further actions. It is recommended to add the required_version attribute to the terraform configuration block.

Example:

terraform {
  required_providers {
    aws = ">= 2.7.0"
  }
}