We are building a terraform file including AWS and Databricks resources. Both of these have different providers but are directly dependent on each other. In the Terraform providers file, can you include different providers to be used in the same file?
Yes, it is not only valid, but quite common to have multiple different providers within the same configuration.
If you have questions about using multiple providers, it would help to add an example of the configuration to show better demonstrate the issue.
I had modified the code and created separate modules. But how would you structure the provider.tf file with the providers in the initial question?