Skip to content

Commit

Permalink
Merge pull request #34 from OurFriendIrony/feature/base_support_for_r…
Browse files Browse the repository at this point in the history
…emoved_block

Support for 'removed' blocks in terraform v1.7.x
  • Loading branch information
shihanng authored Sep 22, 2024
2 parents 7e8a447 + 4ac4134 commit f415c61
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/configs/parser_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,8 @@ var configFileSchema = &hcl.BodySchema{
{
Type: "import",
},
{
Type: "removed",
},
},
}
8 changes: 8 additions & 0 deletions pkg/tfvar/testdata/normal/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,11 @@ import {
id = "i-123545"
to = aws_instance.b
}

removed {
from = aws_instance.c
lifecycle {
destroy = false
}
}

0 comments on commit f415c61

Please sign in to comment.