Loading...
Turn key/value inputs into a clean terraform.tfvars file with correct HCL typing (strings, numbers, bools, lists, maps), plus matching variable declarations.
region = "us-east-1"
instance_count = 3
enable_logging = true
azs = ["us-east-1a", "us-east-1b", "us-east-1c"]
tags = {
env = "prod"
team = "platform"
}variable "region" {
type = string
}
variable "instance_count" {
type = number
}
variable "enable_logging" {
type = bool
}
variable "azs" {
type = list(string)
}
variable "tags" {
type = map(string)
}"auto" infers the HCL type from the value; override it when a numeric-looking string must stay a string (zip codes, versions).