Multi cloud providers in the same code

Hi all. We use terraform to deploy both infrastructure and k8s on AWS and Azure, and we declare both providers in the same code.
The problem comes when we need to deploy on azure, it ask us AWS credential and of course on the other way around. Is there a simple solution/workaround/trick for this AFAYK?

Any advice is welcome!

Hi all. Ayyone on this?

I would suggest that the answer is to not define objects for multiple cloud providers in the same piece of Terraform code.

Since they are in different clouds, they must be pretty loosely coupled anyway.

Thanks mate. Appreciated.