cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 

Impossible to access Terraform created external location?!

Teo12333
New Contributor II

Hi all,

There seems to be an external location created that nobody within the organization can actually see or manage, because it has been created with a Google service account in Terraform.

Here is the problem:

DESCRIBE EXTERNAL LOCATION `gcsbucketname`;

this returns

[UNAUTHORIZED_ACCESS] Unauthorized access: PERMISSION_DENIED: User does not have any non-BROWSE privileges on External Location 'gcsbucketname'. SQLSTATE: 42501

this confirms that there IS an external location by this name in my workspace, however, as an admin, I am unable to see it in the external locations, neither is anybody else in my organization. I am unable to recreate the external location.... because it already exists. It seems this was created by mistake with terraform, the terraform configuration has since then changed to no longer include this. Now even if we want to recreate this with terraform, we can't because the google bucket location is already taken.
 
I expect, as an admin, to be able to see everything to manage my organization. Is this not the case with Databricks? To me it seems that our only way out now is to create a new bucket or recreate the workspace alltogether. Am I missing something? Is there a superadmin button somewhere that I am not aware of? It seems a bit silly that nobody within my organization can see ANY external locations, even working ones. We found out there are additional external locations which currently cannot be managed at all, since they are created by the service account (which we can't use to log in the workspace with since its a gcs service account).
 

I hope I'm just missing an obvious super admin button somewhere but it really seems that databricks allows users to create inaccessible external locations.

Thanks in advance for your input!

2 REPLIES 2

Walter_C
Databricks Employee
Databricks Employee

Are you a workspace admin or a metastore admin? Only Metastore admins should see all UC objects created.

mnorland
Contributor

I would agree that the metastore admin(s) should be able to see the external location.  This issue can happen with terraform scripts if the script doesn't grant additional rights on the external location.

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now