{"uid":"cap_JVz3F9hnaT-TTlstFlavQ","slug":"terraform-hcl-formatter-light-4a8a0d64","name":"Terraform HCL Formatter Light","description":"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.","url":"https://kihustle.tech/nexus/api/v1/terraform-hcl-formatter-light","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string"}}},"responseSchema":{"type":"json","example":{"result":"processed","status":"success"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cuA5ceDYBoT0VukUSv1XE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Formats and prettifies Terraform HCL (HashiCorp Configuration Language) code text via a lightweight processing endpoint.","exampleAgentPrompt":"Can you format this Terraform HCL code for me so it's properly indented and consistent: 'resource \"aws_instance\" \"example\" {ami=\"ami-12345\" instance_type=\"t2.micro\"}'?","exampleUseCases":[{"title":"Terraform config cleanup before commit","prompt":"I've got some messy Terraform HCL that I wrote quickly and need to clean up the formatting before pushing to git — can you run it through a formatter? Here's the code: resource \"aws_s3_bucket\" \"my_bucket\" {bucket=\"my-app-bucket\" acl=\"private\"}"},{"title":"Normalize HCL from code generator","prompt":"I generated some Terraform config automatically and the indentation and spacing is all over the place. Can you format this HCL text so it follows standard style: variable \"region\" {default=\"us-east-1\" type=string description=\"AWS region\"}"},{"title":"Standardize team Terraform files","prompt":"Our team has Terraform files written by different people and the formatting is inconsistent. Can you normalize the style of this HCL snippet so it's uniform: module \"vpc\" {source=\"./modules/vpc\" cidr_block=\"10.0.0.0/16\"}"}],"resultDescription":"Returns a JSON object with a 'result' field containing the formatted HCL text and a 'status' field indicating 'success' or failure. The processed output is the prettified version of the input Terraform HCL string.","failureModes":["Empty or missing 'text' field returns an error or unprocessed result","Malformed JSON input may cause a 400-level error","Invalid or non-HCL text may return unprocessed output or an error","Service unavailability may return a 5xx response","Extremely large HCL payloads may time out or be rejected"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, low-cost ($0.002 per call) HCL formatting pass on Terraform configuration text. It is best suited for simple formatting and prettification tasks rather than full validation or linting. Prefer this over heavier infrastructure tools when you just need consistent indentation and style normalization on HCL snippets.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:03:12.679Z","isFirstParty":false}