# Terraform HCL Formatter (Light)

> Terraform HCL Formatter (Light) is a paid API for AI agents from kihustle.tech, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Formats and prettifies Terraform HCL configuration text into canonical, well-formatted output

## Facts

- Endpoint: POST https://kihustle.tech/bot-bazaar/api/v1/terraform-hcl-formatter-light
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/terraform-hcl-formatter-light-cf058b36
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fY5xF6APw2kL7sLNuzv9U

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability terraform-hcl-formatter-light-cf058b36 -d '<json body>'
```

Example prompt: Can you format this Terraform HCL for me? Here's the raw config: resource "aws_instance" "example" {ami="ami-12345" instance_type="t2.micro"}

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-call HCL formatting service without spinning up local tooling like 'terraform fmt'. Ideal for CI pipelines, agent workflows, or web apps that need to normalize Terraform config on the fly without local Terraform installation.

## Known failure modes

- Invalid or unparseable HCL input returns a non-success status
- Empty text input may return an empty result
- Extremely large HCL files may be truncated or rejected
- Malformed JSON in the request body causes a 400-level error

## How this service works

Kostenlose Guides, Solo-Playbooks und Artikel zu KI, Automation und Side Hustles — für Menschen, die mit echten Systemen online Einkommen aufbauen wollen. Transparent finanziert über faire Affiliate-Links.

## Output

Returns a JSON object with a 'result' field containing the formatted HCL text and a 'status' field indicating success or failure of the formatting operation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "processed",
  "status": "success"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/terraform-hcl-formatter-light-cf058b36/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kihustle.tech](https://www.zero.xyz/host/kihustle.tech/llms.txt)
