-
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
why does this module fail to find the aws_instance #1863
Comments
Well, at least the error existed with 0.4.x. I've tagged it so we can look at it. |
In case I was not clear, the error pasted above is from |
This may be a duplicate of #1916, I will test to confirm. And the last comment above on versions was incorrrect (sorry!) |
This is a dup of #1916 and its fixed |
confirmed here too, sorry for the delayed reply! |
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. |
I feel like I might be overlooking a simple mistake, but I've been over this again and again and I am still getting confusing behavior.
Here is a simplifed version of the code I'm working with..
In one source file...
..and in another file:
This fails:
If I drop the reference to the
aws_instance.master
resource, the error goes away and the salt master instance is first in the build plan.tf graph
shows the instance near last, while the cluster is first. Is this spin off from #1178 or un-related?While debugging, I found that I could put in a reference to another resource in the same file as the
aws_instance.master
resource, and the module was happy with that reference.This made me curious.. could I add another instance with a reference to the
aws_instance.master
? I added:and
tf plan
is fine and happy with that reference, but not when provided to the module. I tested that with and withoutdepends_on = "aws_instance.master"
.I first ran into the error with
0.4.x
, so I upgrade to0.5.x
, but the problem persists.The text was updated successfully, but these errors were encountered: