Skip to content

Conversation

endzyme
Copy link
Contributor

@endzyme endzyme commented Nov 26, 2019

I added both "count" and "each" since they are potential dynamics that
could be in a resource. This feels a little like it could be more
automated to gather the variable context from each resource vs having to
define these variables manually.

NOTE: This change (and this method of variable definition in contexts in
general) introuces false positives. An example is using the 'each'
variable in a place where you have not also used the 'for_each'
attribute on a resource. The parser language server will PASS but
terraform will fail.

I added both "count" and "each" since they are potential dynamics that
could be in a resource. This feels a little like it could be more
automated to gather the variable context from each resource vs having to
define these variables manually.

NOTE: This change (and this method of variable definition in contexts in
general) introuces false positives. An example is using the 'each'
variable in a place where you have not also used the 'for_each'
attribute on a resource. The parser language server will PASS but
terraform will fail.
@NickDrouin
Copy link

@juliosueiras , this bug is a bit painful, what is the release schedule, blockers, and do you need any help to get a release out with this fix? [Please point me somewhere else where releases are discussed if this is inappropriate.]

cc: @endzyme

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants