S-mishina/hcl_processor
This is a Python tool that reads Terraform HCL files and sends them to the AWS Bedrock API (e.g. Claude and generates JSON output and Markdown reports. It supports automated analysis and documentation of infrastructure configurations.
What's novel
This is a Python tool that reads Terraform HCL files and sends them to the AWS Bedrock API (e.g. Claude and generates JSON output and Markdown reports. It supports automated analysis and documentation of infrastructure configurations.
Code Analysis
16 files read · 5 roundsA Python CLI tool that reads Terraform HCL files, sends them to AWS Bedrock (Claude) via the Converse API with tool-based structured output, and generates JSON and Markdown documentation of infrastructure configurations.
Strengths
Well-structured provider abstraction with factory pattern, JSON Schema validation for both config and LLM output, a thoughtful failback/chunking strategy for large payloads, and comprehensive unit tests with meaningful edge case coverage including the array-schema wrapping for Bedrock API compatibility.
Weaknesses
The core 'intelligence' is entirely delegated to the LLM — the tool is essentially a well-built wrapper around a Bedrock API call with no novel algorithms or parsing logic beyond hcl2.loads(); the failback strategy has a TODO comment admitting it's 'not yet guaranteed to work' for the resource type, and the system prompt in system_config.py contains a broken string with mismatched quotes.
Score Breakdown
Signal breakdown
Innovation
Craft
Traction
Scope
Evidence
Commits
284
Contributors
2
Files
43
Active weeks
22
Repository
Language
Python
Stars
1
Forks
0
License
NOASSERTION