Terraform Version
0.12.6
Terraform Configuration Files
resource "null_resource" "test_foreach" {
for_each = {
key1 = "value1"
key2 = "value2"
}
provisioner "local-exec" {
command = "echo ${each.key} - ${each.value}"
}
}
Debug Output
Crash Output
https://gist.github.com/pselle/e3ed20b30e7daf48cb58e04f8d7fd310
Expected Behavior
Should not have crashed -- echo should have run successfully
Actual Behavior
Crash
Steps to Reproduce
terraform init
terraform apply
Additional Context
References
Terraform Version
0.12.6
Terraform Configuration Files
Debug Output
Crash Output
https://gist.github.com/pselle/e3ed20b30e7daf48cb58e04f8d7fd310
Expected Behavior
Should not have crashed --
echoshould have run successfullyActual Behavior
Crash
Steps to Reproduce
terraform initterraform applyAdditional Context
References