GoogleCloudPlatform / GoogleCloudPlatform/solution-acceleration-toolkit
hclField cannot handle object or nested object
- Dominant language
- Go
- Stars
- 161
- Forks
- 66
- PR merge metrics
- No merged PRs in 30d
Description
For example
In Terraform Engine config:
```
notification_config = {
pubsub_topic = "projects/example-prod-data/topics/example-topic"
}
```
with `{{hclField . "notification_config" -}}`
will be turned to
```
notification_config = pubsub_topic = "projects/example-prod-data/topics/example-topic"
```
and with more complicated struct, for example
```
stream_configs = [{
bigquery_destination = {
dataset_uri = "bq://example-prod-data.example_dataset_id"
schema_config = {
recursive_structure_depth = 3
}
}
}]
```
with with `{{hclField . "stream_configs" -}}`
will be turned to
```
stream_configs = [
{
bigquery_destination {
dataset_uri = "bq://example-prod-data.example_dataset_id"
schema_config {
recursive_structure_depth = 3
}
}
},
]
```
Contributor guide
Assessment
This issue has not been assessed yet.