terraform-provider-databricks icon indicating copy to clipboard operation
terraform-provider-databricks copied to clipboard

[FEATURE] databricks_connection without including credentials in the Terraform setup

Open sduveen-pivot opened this issue 11 months ago • 3 comments
trafficstars

Use-cases

We enjoy for all other objects we maintain in our Terraform setup for databricks not having any credentials/passwords maintained within it. E.g. We creeate secret scopes w/permissions, but not the secrets themselves. Unfortunately, for the connections it requires the credentials while creating the resource. It would be wonderful if we could e.g. reference a databricks secret for the connection options OR leave it unset and then if we modify it in the console, not for those additional options to be removed (I'd prefer the former secrets link)

Attempted Solutions

Proposal

References

https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/connection

sduveen-pivot avatar Dec 16 '24 22:12 sduveen-pivot

It's really a limitation of the APIs - the actual payload expected by API is just a map that terraform needs to send. If some parameters aren't provided then API rejects it...

alexott avatar Jan 02 '25 14:01 alexott

I understand the API-limiting aspect. I'm hoping you have some access to the API team, for instance ;-)

sduveen-pivot avatar Jan 06 '25 16:01 sduveen-pivot

Also have this need. Tried supplying databricks secret config_reference but it does not work

k-scherer avatar May 30 '25 19:05 k-scherer