{"push_id":1219217335,"size":1,"distinct_size":1,"ref":"refs/heads/f-parse-tfenvvars-as-hcl","head":"e0e9b968fcda32e32717bb41940070af0520ace9","before":"6311f40dd0e34404979c6bd0221df6a894837182","commits":[{"sha":"e0e9b968fcda32e32717bb41940070af0520ace9","author":{"name":"James Nugent","email":"01cfcc75cc77e42d1369b51ffa1aaa70069d0f46@jen20.com"},"message":"core: Allow lists and maps as values in envvars\n\nTerraform 0.7 introduces lists and maps as first-class values for\nvariables, in addition to string values which were previously available.\nHowever, there was previously no way to override the default value of a\nlist or map, and the functionality for overriding specific map keys was\nbroken.\n\nUsing the environment variable method for setting variable values, there\nwas previously no way to give a variable a value of a list or map. These\nnow support HCL for individual values - specifying:\n\n    TF_VAR_test='[\"Hello\", \"World\"]'\n\nwill set the variable `test` to a two-element list containing \"Hello\"\nand \"World\". Specifying\n\n    TF_VAR_test_map='{\"Hello = \"World\", \"Foo\" = \"bar\"}'\n\nwill set the variable `test_map` to a two-element map with keys \"Hello\"\nand \"Foo\", and values \"World\" and \"bar\" respectively.\n\nThe same logic is applied to `-var` flags, and the file parsed by\n`-var-files` (\"autoVariables\").\n\nNote that care must be taken to not run into shell expansion for `-var-`\nflags and environment variables.\n\nWe also merge map keys where appropriate. The override syntax has\nchanged (to be noted in CHANGELOG as a breaking change), so several\ntests needed their syntax updating from the old `amis.us-east-1 =\n\"newValue\"` style to `amis = \"{ \"us-east-1\" = \"newValue\"}\"` style as\ndefined in TF-002.","distinct":true,"url":"https://api.github.com/repos/hashicorp/terraform/commits/e0e9b968fcda32e32717bb41940070af0520ace9"}]}
{"actor":{"display_login":"jen20"}}