mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
When configuration is read out of JSON, HCL assumes that empty levels of objects can be flattened, but this removes too much to decode into a config.Terraform struct. Reconstruct the appropriate AST to decode the config struct.
10 lines
91 B
JSON
10 lines
91 B
JSON
{
|
|
"terraform": {
|
|
"backend": {
|
|
"s3": {
|
|
"foo": "bar"
|
|
}
|
|
}
|
|
}
|
|
}
|