-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
make diagnose on for_each argument more precise #22279
make diagnose on for_each argument more precise #22279
Conversation
Hi @tmatias, thanks for your contribution! It looks like this change causes the |
Thanks @tmatias! |
This doesn't seem right. Shouldn't you be able to use cc: @teamterraform |
@omeid resources created with |
In that case then the documentation needs to be updated accordingly, from the intro to the actual configuration document suggests that lists should work. Intro: ...includes the idea of iterating over a list or map using the for_each argument, which is intended as a more. expressions docs: Other than the documentation, I think the general that |
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. |
That condition would not diagnose other iterables, such as
tuple
argument values, causing apanic: not a string
later on.