-
Notifications
You must be signed in to change notification settings - Fork 29
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
When referencing a module stored locally if it has a provider
block, you get credential errors
#67
Comments
|
Solution I came up with for my project in case anyone else needs it. It's not the slickest thing and I think a built-in solution would be better, but it works.
|
Hi @togakangaroo! |
You know what, yeah I think I probably could - I'll take a look in the next couple days |
PR created. I was going to capture stderr and automatically recommend this if detecting a validation error but it seems like there's a few different ways of invoking terraform and doing so gets into some complexity so I opted to just document |
Any way to get it merged in? I'd love to remove the workaround from my project before I have to move onto other work |
I am working on an example for a tf module we're developing at work. So the folder structure is something like
In my example files I have
This works, I can
tflocal apply
and everythingnow the module itself (in
module-files.tf
) got added an aws provider blockand suddenly this fails
Having inspected how tflocal works, I think I understand why.
I believe that tflocal generates a temporary
localstack_providers_override.tf
file and then cleans it up, right? Well for the module it has no way of creating one there. If I manually create this file at the module-files.tf level then mytflocal apply
works!So it seems to me that tflocal either needs to walk to included modules, or at least provide a configuration where you can say "ALSO localstack-ify these other directories temporarily"
The text was updated successfully, but these errors were encountered: