Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
e-moshaya opened this issue Dec 8, 2020 · 6 comments · Fixed by #27197
Assignees
Labels
bug confirmed a Terraform Core team member has reproduced this issue

Comments

@e-moshaya
Copy link

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

#26947

@e-moshaya e-moshaya added bug new new issue not yet triaged labels Dec 8, 2020
@alisdair alisdair added confirmed a Terraform Core team member has reproduced this issue and removed new new issue not yet triaged labels Dec 8, 2020
@alisdair alisdair self-assigned this Dec 8, 2020
@alisdair
Copy link
Contributor

alisdair commented Dec 8, 2020

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

@e-moshaya
Copy link
Author

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

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

@alisdair
Copy link
Contributor

alisdair commented Dec 8, 2020

Yes. I'm working on it right now.

@alisdair
Copy link
Contributor

alisdair commented Dec 8, 2020

@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.

@e-moshaya
Copy link
Author

thanks, @alisdair I can confirm 0.14.2 fixes this issue

@ghost
Copy link

ghost commented Jan 8, 2021

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.

@ghost ghost locked as resolved and limited conversation to collaborators Jan 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug confirmed a Terraform Core team member has reproduced this issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants