salesforce / terraform-provider-anypoint

The official Terraform Provider for Mulesoft Anypoint Platform
https://registry.terraform.io/providers/mulesoft-anypoint/anypoint/latest/docs
MIT License
21 stars 17 forks source link

terraform init fails, when i create reusable module #94

Open Visha118 opened 3 weeks ago

Visha118 commented 3 weeks ago

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 commented 2 weeks ago

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.