Provider dependency

is there a way to make a provider config depends on the output of a module?

for example: if in a stack, we have an AKS kubernetes cluster deployed by azurerm provider, and we have a kubernetes provider that deploy helm charts in that cluster
so the config of the kubernetes provider depends on the output of the module who creates the aks cluster