Are there someone who is using databricks provider...
# general
i
Are there someone who is using databricks provider? https://github.com/pulumi/pulumi-databricks trying to create a provider, but getting this errors:
Copy code
error: could not validate provider configuration: 4 errors occurred:
        * : invalid or unknown key: azure_client_id
        * : invalid or unknown key: azure_client_secret
        * : invalid or unknown key: azure_tenant_id
        * : invalid or unknown key: azure_workspace_resource_id
Copy code
export const provider = new Provider(
  'databricks',
  {
    azureWorkspaceResourceId: workspace.id,
    azureClientId: config.azure.clientId,
    azureTenantId: config.azure.tenantId,
    azureClientSecret: config.azure.clientSecret,
    host: workspace.workspaceUrl
  },
  {
    parent: workspace
  }
);
(typescript)
@wet-account-54803 is it something that you can help with?
w
@icy-jordan-58549 i think that @broad-dog-22463 should pick it up 🙂
those keys work in tf provider like a charm 🙂
i
2yrs ago initially I created first version of databricks provider 🙂
but looks like this one doesn’t work 😞 no idea why
b
the Provider has config in there
w
i know 🙂 pulumi official is based on the work of ingeni solutions
b
I have a feeling its' because you are using azure.config.
or config.azure.
if you set them directly, it will work
i
omg 🙂
let me check
btw,
Copy code
const azureConfig = new pulumi.Config('azure');
export const azure = {
  clientId: azureConfig.require('clientId'),
  tenantId: azureConfig.require('tenantId'),
  subscriptionId: azureConfig.require('subscriptionId'),
  clientSecret: azureConfig.requireSecret('clientSecret')
};
that’s my
config.azure
b
yeah you may not be able to accedd the azure config block
w
@broad-dog-22463, btw, could you look at my prs?
b
they are on my list to get to Serge 😕 I am sorry, been dealing with a major provider bug this week that I just opened a PR on
(which will be an improvement across ALL providers)
w
no worries 🙂 just making sure that it's on your list
i
is there a way to explain why provider can’t access Config vars?
ok, I gave it plain strings
Copy code
databricks:index:Group (data-science-group):
    error: could not validate provider configuration: 4 errors occurred:
        * : invalid or unknown key: azure_tenant_id
        * : invalid or unknown key: azure_workspace_resource_id
        * : invalid or unknown key: azure_client_id
        * : invalid or unknown key: azure_client_secret
same issue
“@pulumi/databricks”: “^0.4.0",
b
interesting! I will look at that and work out what is happening...
w
https://github.com/pulumi/pulumi-databricks/issues/6 btw, i think this issue is relevant to this thread 🙂
i
any luck? @broad-dog-22463