Skip to content

Terraform doesn't understand pre-release required_version constraint  #28148

@marshall7m

Description

@marshall7m

Terraform Version

0.15.0-beta2

Terraform Configuration Files

terraform
terraform {
  required_version = "0.15.0-beta2"
}

output "test" {
    value = "foo"
}

Debug Output

Crash Output

Expected Behavior

Outputs:

test = "foo"

Actual Behavior

│ Error: Unsupported Terraform Core version
│ 
│   on main.tf line 2, in terraform:
│    2:   required_version = "0.15.0-beta2"
│ 
│ This configuration does not support Terraform version 0.15.0-beta2. To proceed, either choose
│ another supported Terraform version or update this version constraint. Version constraints are
│ normally set for good reason, so updating the constraint may lead to other errors or unexpected
│ behavior.

Steps to Reproduce

  1. `terraform apply

Additional Context

Using tfenv for Terraform version management. Specifically using tfenv use 0.15.0-beta2 before running terraform apply

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugconfirmeda Terraform Core team member has reproduced this issueexplaineda Terraform Core team member has described the root cause of this issue in code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions