Hi there!
I have a solution that may require multiple providers, but I’m having issues with one thing:
- Since I support multiple providers, and these can include different Cloud Providers but also different clouds inside Azure, I cannot use env. vars, as different clouds inside Azure will require different credentials to be set with the same name, and with env. vars I can only have one value for that name (for ex.:
ARM_SUBSCRIPTION_ID) - I’ve tried declaring the credentials directly in a provider.tf file, but when testing trying to create a Storage Account, I got an error. The docs say that, underneath, the module uses the AzAPI provider, which I did not declare, and without env.vars does not work since it’s not able to authenticate.
How can I make AzApi inherit the credentials from the original provider that started the process (azurerm)?
Thank you in advance!