-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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 #27197
Conversation
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.
Codecov Report
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not really sure I understand why "is the enhanced remote backend" is the right condition here, but the testing procedure you showed in the writeup makes sense to me and this seems to be an urgent-type fix so I'm approving this with the goal of understanding why this is the right answer later, after we've got the release done. 😀
If I understand what you mean here, this is because the change in #26947 was only implemented as a method on the |
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. |
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 fromremote
backend sources which do not have an exactly matching Terraform version.I don't see any reasonable way to add automated tests for this change. Here is an example of the manual verification I'm doing:
If approved, I intend to backport this change to 0.14, 0.13, and 0.12.
Fixes #27200