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

Fix terraform_remote_state backend version check #27209

Merged
merged 1 commit into from
Dec 9, 2020

Conversation

alisdair
Copy link
Contributor

@alisdair alisdair commented Dec 8, 2020

The change recently introduced to ensure that remote backend users do not accidentally upgrade their state file (#26947) needs to be disabled for all read-only uses, including the builtin terraform_remote_state data source. Without doing this, the remote state data source fails to read state from remote backend sources which do not have an exactly matching Terraform version.

Backport of #27197.

The change recently introduced to ensure that remote backend users do
not accidentally upgrade their state file needs to be disabled for all
read-only uses, including the builtin terraform_remote_state data
source.
@alisdair alisdair self-assigned this Dec 8, 2020
@codecov
Copy link

codecov bot commented Dec 8, 2020

Codecov Report

Merging #27209 (77035e5) into v0.12 (773884c) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

Impacted Files Coverage Δ
builtin/providers/terraform/data_source_state.go 74.10% <0.00%> (-1.09%) ⬇️
backend/remote/backend_common.go 51.29% <0.00%> (-0.74%) ⬇️
states/statefile/version4.go 52.44% <0.00%> (+0.27%) ⬆️
dag/marshal.go 70.05% <0.00%> (+0.59%) ⬆️

@alisdair alisdair merged commit c852e21 into v0.12 Dec 9, 2020
@alisdair alisdair deleted the alisdair/terraform-remote-state-version-fix-012 branch December 9, 2020 18:18
@alisdair
Copy link
Contributor Author

alisdair commented Dec 9, 2020

No changelog for this because the bug it is fixing was never released on this branch.

@ghost
Copy link

ghost commented Jan 9, 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 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant