You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar errors have been reported many times (e.g. #4). The problem is that the official HCL parser library that we use, does not produce the same output as you input because there are multiple serialized version for a given HCL file. This comment contains two links with more details: #4 (comment)
i cannot convert a tf to json and back again .. ( json2hcl -reverse < a.tf | json2hcl > b.tf )
a.tf ;
"terraform" = {
"backend" "local" {
"key" = "x.tfstate"
}
}
-- result b.tf
"terraform" = {
"backend" = {
"local" = {
"key" = "x.tfstate"
}
}
}
once back as b.tf iIT IS NOT valid syntax
The text was updated successfully, but these errors were encountered: