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

backend/remote: No version check for local ops #27407

Conversation

alisdair
Copy link
Member

@alisdair alisdair commented Jan 5, 2021

If the remote backend is connected to a Terraform Cloud workspace in local operations mode, we disable the version check, as the remote Terraform version is meaningless.

Fixes #27353.

If the remote backend is connected to a Terraform Cloud workspace in
local operations mode, we disable the version check, as the remote
Terraform version is meaningless.
@alisdair alisdair added backend/remote 0.14-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged labels Jan 5, 2021
@alisdair alisdair requested a review from a team January 5, 2021 14:22
@alisdair alisdair self-assigned this Jan 5, 2021
@codecov
Copy link

codecov bot commented Jan 5, 2021

Codecov Report

Merging #27407 (7e09cd1) into master (5ceb8b2) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted Files Coverage Δ
backend/remote/backend.go 62.81% <100.00%> (+0.14%) ⬆️
states/statefile/version4.go 58.19% <0.00%> (+0.23%) ⬆️
terraform/node_resource_plan.go 98.05% <0.00%> (+1.94%) ⬆️

Copy link
Contributor

@apparentlymart apparentlymart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me!

@alisdair alisdair merged commit afbde35 into master Jan 5, 2021
@alisdair alisdair deleted the alisdair/backend-disable-version-check-for-workspaces-with-local-operations branch January 5, 2021 18:54
@acdha
Copy link

acdha commented Jan 5, 2021

Thank you!

@ghost
Copy link

ghost commented Feb 5, 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 Feb 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
0.14-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged backend/remote
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Import fails with “Terraform version mismatch” using Terraform Cloud
3 participants