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
..
2018-01-22 17:21:10 -08:00
2017-04-04 13:39:01 -07:00
2017-04-04 13:39:01 -07:00
2017-04-04 13:39:01 -07:00
2018-01-22 17:21:10 -08:00
2018-04-19 14:26:31 -07:00
2017-10-26 07:42:49 -05:00
2018-03-07 15:17:52 +00:00
2018-03-07 15:17:52 +00:00
2017-04-04 13:39:01 -07:00
2017-04-04 13:39:01 -07:00
2018-04-19 14:26:31 -07:00
2020-02-14 11:42:29 -05:00
2013-12-19 13:44:18 -08:00
2018-01-22 17:21:10 -08:00