iterative / terraform-provider-iterative

☁️ Terraform plugin for machine learning workloads: spot instance recovery & auto-termination | AWS, GCP, Azure, Kubernetes
https://registry.terraform.io/providers/iterative/iterative/latest/docs
Apache License 2.0
287 stars 27 forks source link

Parse nested maps from viper configuration #639

Closed 0x2b3bfa0 closed 1 year ago

0x2b3bfa0 commented 1 year ago

Closes #638; convoluted workaround to keep cobra instead of viper as the primary schema.

dacbd commented 1 year ago

Can you help my brain and give an example of what was broken and is now fixed by this? I don't quite follow the info in the linked issue.

this is broken?

environment = { THING1 = "", THING2 = "" }

but this isn't?

environment = { THING1 = "" }
0x2b3bfa0 commented 1 year ago

Both were broken. The standalone command-line tool ignored all the map-like attributes from a main.tf file.