Is there a way to access the provider’s settings i...
# general
w
Is there a way to access the provider’s settings in a custom
pulumi.ComponentResource
other than trying to access the config files? I need to deploy some azure-native ressources with needs to reference the
subscription_id
in some parameters and don’t know how to do it cleanly and compatible with an explicit provider config.
b
have you parented the resources to the component?
w
Yes, the problem is not directly the provider but I need part of it’s configuration to forge a string to pass as one of the argument of the ressource
b
Ah I see. Wouldn’t you just use something like this? https://www.pulumi.com/registry/packages/azure/api-docs/core/getsubscription/
w
That would work, didn’t think to check the
azure
provider as I’m using the azure-native one
b
w
that’s unfortunately not the same “subscriptions”
b
ah yes, apologies.
w