opentofu/config/test-fixtures/terraform-backend-2.tf.json
James Bardin 8bcb9e19ca restructure JSON terraform config block AST
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.
2017-03-21 18:15:58 -04:00

10 lines
91 B
JSON

{
"terraform": {
"backend": {
"s3": {
"foo": "bar"
}
}
}
}