Skip to content

Conversation

wata727
Copy link
Member

@wata727 wata727 commented Feb 11, 2024

Fixes #154

The terraform_workspace_remote rule always emits issues when using ${terraform.workspace} with a remote backend. This was introduced to avoid the unintuitive behavior of values always being "default", but this behavior has been improved in 1.1.0.
terraform-linters/tflint#738

This PR changes it to take into account the Terraform version when emitting issues. Use required_version to guess the version. If not declared, it is implicitly assumed to be 1.1+.

@wata727 wata727 requested a review from bendrucker February 11, 2024 13:45
@wata727 wata727 merged commit 6ace801 into main Feb 17, 2024
@wata727 wata727 deleted the workspace_remote_in_tf11 branch February 17, 2024 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

terraform_workspace_remote gives incorrect suggestions on Terraform v1.1+.

2 participants