tfparse icon indicating copy to clipboard operation
tfparse copied to clipboard

tfparse incompatible with "removed" block syntax

Open zod-chill opened this issue 11 months ago • 2 comments

using python version 3.12.8 occurring in tfparse versions 0.6.13, 0.6.12, 0.6.11

Example:

When using versions 0.6.13, 0.6.12, 0.6.11 Defining a removed block results in a

converter2025/02/14 unknown block type: removed

error being output when defining a removed terraform block.

Example code from my main.tf

removed {
    from = example_data.example_name
    lifecycle {
        destroy = false
    }
}

zod-chill avatar Feb 14 '25 18:02 zod-chill

yeah we should probably check the moved block as well

kapilt avatar Apr 03 '25 14:04 kapilt

its more of a logged warning and ignored block effectively in this context vs a hard error.

kapilt avatar Apr 03 '25 14:04 kapilt