-
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
reference modules: config: unknown module referenced #697
Comments
I have the same issues when using an AWS EIP |
Hi @xueshanf! This looks to be working as intended: you can only reference modules that are defined within your own module scope. It looks like the |
Got it. Thanks. I used a script to generate tf vars from the output of the vpc's module so they are available to other modules. Xueshan
|
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 am trying to make module references between two subfolders to work, but could not get it to work. I might have missed something really simple.
There is simplified setup:
Under projects (root level), main.cf
Subfolder ./vpc/subnet-etcd.tf, in addition to an empty main.cf:
Subfolder ./etcd/etcd-a-01.tf
%terraform plan --module-depth=-1
There are warnings and/or errors related to your configuration. Please
fix these before continuing.
Errors:
Any ideas what's wrong with the setup? Thanks!
The text was updated successfully, but these errors were encountered: