Terraform: remote backend Terraform version validation does not work with Terraform Cloud local execution mode

Created on 8 Dec 2020  ยท  6Comments  ยท  Source: hashicorp/terraform

Terraform Version

0.14.1

...

Terraform Configuration Files

data "terraform_remote_state" "remote" {
  backend = "remote"

  config = {
    organization = "organisation"
    workspaces = {
      name = "workspace1"
    }
  }
}

Crash Output

Expected Behavior

Ideally, check the remote state file terraform_version field instead of execution mode remote version

Actual Behavior

Error: Error loading state error

  on data.tf line 81, in data "terraform_remote_state" "organization":
  81:   backend = "remote"

error loading the remote state: Remote workspace Terraform version "latest"
does not match local Terraform version "0.14.1"

References

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

bug confirmed

Most helpful comment

thanks, @alisdair I can confirm 0.14.2 fixes this issue

All 6 comments

Thanks for reporting this. A fix is forthcoming in #27197.

Thanks for reporting this. A fix is forthcoming in #27197.

Thanks alisdair any chance for a quick 0.14.2 release with this fix?

Yes. I'm working on it right now.

@e-moshaya Terraform 0.14.2 is out now: https://releases.hashicorp.com/terraform/0.14.2/

I'd appreciate it if you could verify that this fixes the issue for you. If not, please let me know and we can reopen this ticket and investigate further.

thanks, @alisdair I can confirm 0.14.2 fixes this issue

I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

Was this page helpful?
0 / 5 - 0 ratings