Skip to content
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

terraform init fails, when i create reusable module #94

Open
Visha118 opened this issue Sep 6, 2024 · 1 comment
Open

terraform init fails, when i create reusable module #94

Visha118 opened this issue Sep 6, 2024 · 1 comment

Comments

@Visha118
Copy link

Visha118 commented Sep 6, 2024

I am creating active mq resource.
When I write that resource in main.tf, terraform works fine.
But when I write this resource in reusable module and call that module from main.tf, terraform gives error.
Please help.
Below is the error screenshot -
image

@soufi
Copy link
Contributor

soufi commented Sep 12, 2024

This is an error with your script it has nothing to do with the provider.

When you create a module. you have to define the providers you use in that same module. Please check Terraform documentation for how to use modules.

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

No branches or pull requests

2 participants