Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

each reference crashes in provisioner block #22289

Closed
pselle opened this issue Aug 1, 2019 · 1 comment · Fixed by #22291
Closed

each reference crashes in provisioner block #22289

pselle opened this issue Aug 1, 2019 · 1 comment · Fixed by #22291
Assignees
Labels

Comments

@pselle
Copy link
Contributor

pselle commented Aug 1, 2019

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

  1. terraform init
  2. terraform apply

Additional Context

References

@ghost
Copy link

ghost commented Sep 1, 2019

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.

@ghost ghost locked and limited conversation to collaborators Sep 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant