JSON / YAML to Terraform HCL Variable & Locals Generator
Convert JSON and YAML payloads into Terraform HCL variable type constraints (type = object({...})), default values, and terraform.tfvars definitions.
variable "app_config" {
description = "Auto-generated Terraform variable constraint for app_config"
type = object({
cidr_block = string
enable_dns_hostnames = bool
enable_dns_support = bool
max_azs = number
nat_gateways = list(string)
subnets = list(object({
az = string
cidr = string
is_public = bool
name = string
route_table_id = string
}))
tags = map(string)
vpc_name = string
})
default = {
cidr_block = "10.100.0.0/16"
enable_dns_hostnames = true
enable_dns_support = true
max_azs = 3
nat_gateways = ["nat-08127394821a", "nat-09823412344b"]
subnets = [
{
az = "us-east-1a"
cidr = "10.100.1.0/24"
is_public = true
name = "public-1a"
route_table_id = "rtb-01a9b2c3d4"
},
{
az = "us-east-1b"
cidr = "10.100.2.0/24"
is_public = true
name = "public-1b"
route_table_id = "rtb-01a9b2c3d4"
},
{
az = "us-east-1a"
cidr = "10.100.10.0/24"
is_public = false
name = "private-app-1a"
route_table_id = "rtb-09f8e7d6c5"
},
{
az = "us-east-1b"
cidr = "10.100.11.0/24"
is_public = false
name = "private-app-1b"
route_table_id = "rtb-09f8e7d6c5"
}
]
tags = {
CostCenter = "infra-0091"
Environment = "production"
ManagedBy = "terraform"
Owner = "cloud-platform-team"
}
vpc_name = "prod-useast1-vpc"
}
}
100% Client-Side AST Synthesis
All JSON and YAML parsing, AST tree traversal, and Terraform HCL type synthesis execute locally in your browser memory with zero network requests or telemetry.
Terraform 1.3+ Conformance & Optionals
Automatically detects missing or nullable fields and wraps them in standard optional(type, default) syntax, preventing Terraform plan-time runtime type errors.
Multi-Dialect Infrastructure Export
Seamlessly exports production-ready variables.tf type constraints, terraform.tfvars value definitions, locals.tf configuration blocks, and tfvars.json files.