cloud-custodian / cloud-custodian/tfparse

tfparse incompatible with "removed" block syntax

Open
#234 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
57
Forks
19
Avg merge
2h 1m
Merged PRs (30d)
1

Description

_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
}
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the error using the removed block shown in main.tf with Python 3.12.8 and the affected tfparse versions. Trace the Terraform block parsing path and verify that the removed block, including its lifecycle settings, is accepted without the unknown block type error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, terraform
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.