GoogleCloudPlatform / GoogleCloudPlatform/solution-acceleration-toolkit

hclField cannot handle object or nested object

Open
#666 2 comments 0 reactions 0 assignees View on GitHub
good first issue
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.