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

terraform: Add support for Terraform v1.2 syntax #1403

Merged
merged 2 commits into from
May 29, 2022
Merged

terraform: Add support for Terraform v1.2 syntax #1403

merged 2 commits into from
May 29, 2022

Conversation

wata727
Copy link
Member

@wata727 wata727 commented May 29, 2022

Fixes #1388
See also https://github.com/hashicorp/terraform/releases/tag/v1.2.0 https://github.com/hashicorp/terraform/releases/tag/v1.2.1

This PR updates the bundled Terraform's internal packages version to v1.2.1 from v1.1.
This will allow you to use the new keywords such as precondition, postcondition, and replace_triggered_by added in v1.2.

Most of these changes were completed by simply copying the Terraform package, but it's worth noting that terraform.DefaultVariableValues has been removed in this commit.

However, if you look at the history of the change, it looks like it was removed when the Terraform core team removed the redundant variable merge logic, so this function itself is not a problem. So, we have moved this function under the tflint package and referenced it. There are no changes to the implementation.

wata727 added 2 commits May 29, 2022 23:28
terraform.DefaultVariableValues is removed in this commit:
hashicorp/terraform@36c4d4c

This removes the redundant code, but the implementation itself is not wrong,
so move it to the tflint package.
@wata727 wata727 merged commit a47b026 into master May 29, 2022
@wata727 wata727 deleted the tf1.2 branch May 29, 2022 16:28
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.

Add support for Terraform v1.2 syntax
1 participant