mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 18:01:01 -06:00
8bcb9e19ca
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"
|
|
}
|
|
}
|
|
}
|
|
}
|