Different providers in the same resource file

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?

Providers:
https://registry.terraform.io/providers/databrickslabs/databricks/latest
https://registry.terraform.io/providers/hashicorp/aws/latest

Hi @garyrizzo1992,

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?