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

Support moved block syntax from Terraform 1.1 #224

Open
theirix opened this issue Jan 26, 2022 · 0 comments · May be fixed by #225
Open

Support moved block syntax from Terraform 1.1 #224

theirix opened this issue Jan 26, 2022 · 0 comments · May be fixed by #225

Comments

@theirix
Copy link

theirix commented Jan 26, 2022

Terraform 1.1 introduces a new syntax element - moved block. Currently config-lint cannot parse files with this block.

Input file:

variable "vpc_id" {
  type = string
}

moved {
	from = "x"
	to = "y"
}

Error:

[
  {
    "AssertionMessage": "x.tf:5,1-6: Unsupported block type; Blocks of type \"moved\" are not expected here.",
    "Category": "load",
    "CreatedAt": "2022-01-26T07:57:21Z",
    "Filename": "x.tf",
    "LineNumber": 0,
    "ResourceID": "x.tf",
    "ResourceType": "file",
    "RuleID": "FILE_LOAD",
    "RuleMessage": "Unable to load file",
    "Status": "FAILURE"
  }
]

Config-lint version: 1.1.0

@theirix theirix linked a pull request Jan 26, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant