A worked example, rendered from real sample data. Sign in to run the tool on your own input.
resource "aws_instance" "web" {
ami = "ami-12345"
instance_type = "t2.micro"
tags = {
Name = "web-server"
}
}{
"resource": {
"aws_instance": {
"web": {
"ami": "ami-12345",
"instance_type": "t2.micro",
"tags": {
"Name": "web-server"
}
}
}
}
}
Convert between HCL/Terraform config and JSON. Part of the DevTools Surf developer suite. Browse more tools in the Converters collection.