Adrien Delorme 840e67f775
HCL2: when we see a map generate an attribute spec instead of a block spec (#9035)
* mapstructure-to-hcl2: when we see a map generate an attribute spec and not a block spec

this will alow to do

tags = {
 key = "value"
}

instead of

tags {
  key = "value"
}

This will also enable using variables directly for those tags

* generate code

* update tests
2020-04-14 16:05:13 +02:00
..
2019-12-17 11:25:56 +01:00
2016-09-29 14:13:06 -07:00
2019-02-01 15:36:40 +11:00
2019-10-15 12:56:41 +02:00
2018-01-24 17:09:15 -08:00