-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
aws provider info isn't available to grandchild module in 0.6.9 #4607
Comments
I may have been wrong about this working as I expected in 0.6.8. I switched back to 0.6.8 and got similar behavior. |
I found a workaround. If I add an aws.key_pair resource to network_module, then the key_pair created in key_pair_module works also. This even works if I have count=0 on the fake key_pair so that nothing gets created. I think the graphs of before and after doing that are instructive. With the fake key_pair resource: Without the fake key_pair resource: With the fake resource and count=0: |
reopened after accidentally hitting "Close and comment" |
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 have a module (network_module) that uses another module (key_pair_module) that creates an aws resource. As of 0.6.8, I could use network_module from a config that has an aws provider defined and the auth and region from that provider was used when key_pair_module created an aws_key_pair. Now, with 0.6.9, that no longer works.
Here are some simplified configs that show the problem:
./key_pair_module/main.tf
./network_module/main.tf
./example_config/main.tf
./example_config/terraform.tfvars
This is the output when I run terraform apply with 0.6.9:
It shouldn't have prompted for provider.aws.region since that was already defined in the aws provider.
The text was updated successfully, but these errors were encountered: