Closed sethvargo closed 5 years ago
Hey @sethvargo!
Agreed that this ought to work the way you wrote it, but I think you should be able to work around it by using some more awkward syntax:
tags = "${map(random_id.tag_key.hex, random_id.tag_value.hex)}"
I didn't actually test this so maybe there's something else that'll break there but I think that should work.
This is fixed in Terraform 0.12 (beta) slash HCL2
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Terraform Version
v0.8.5-dev
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Instance should be created with tags from the values of random_id.
Actual Behavior
The tag is created as (literally)
${random_id.tag_key.hex}
, and the value is empty.Steps to Reproduce
terraform apply