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

using a splat inside of toset() caused a crash #22632

Closed
fv-robert opened this issue Aug 28, 2019 · 2 comments
Closed

using a splat inside of toset() caused a crash #22632

fv-robert opened this issue Aug 28, 2019 · 2 comments

Comments

@fv-robert
Copy link

fv-robert commented Aug 28, 2019

Terraform Version

Terraform v0.12.7

Terraform Configuration Files

resource "aws_route_table_association" "public_route_table_association" {
  for_each       = toset("${aws_subnet.public_subnet[*].id}")
  subnet_id      = each.value
  route_table_id = "${aws_route_table.public_route_table.id}"
}

Debug Output

Crash Output

https://gist.github.com/fv-robert/3e9abcc39b940fb64d97ffac88a1e011

Expected Behavior

It should have given me an error or success message.

Actual Behavior

It crashed.

Steps to Reproduce

  1. terraform init
  2. terraform plan

Additional Context

References

@hashibot
Copy link
Contributor

Hello! 🤖

This issue seems to be covering the same problem or request as #22580, so we're going to close it just to consolidate the discussion over there. Thanks!

@ghost
Copy link

ghost commented Sep 28, 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 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants