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

feat(misconf): add Terraform 'removed' block to schema #6640

Merged
merged 1 commit into from
May 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pkg/iac/terraform/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,8 @@ var Schema = &hcl.BodySchema{
{
Type: "import",
},
{
Type: "removed",
},
Comment on lines +51 to +53
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to find this list of hcl.BlockHeaderSchema types in the hcl repo but had no luck. I assume it doesn't exist or else we could just import it? Updating this each time would mean running into this problem again when a new block gets added.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's here. We can't import this as the terraform code is in the internal package.

},
}