Skip to content
New issue

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

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

Already on GitHub? # to your account

Fixes #29 - Adjusted variables to check against #43

Merged
merged 1 commit into from
Dec 19, 2019
Merged

Fixes #29 - Adjusted variables to check against #43

merged 1 commit into from
Dec 19, 2019

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

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

Successfully merging this pull request may close these issues.

3 participants