Skip to main content

credentials

Creates, updates, deletes, gets or lists a credentials resource.

Overview

Namecredentials
TypeResource
Iddatabricks_account.provisioning.credentials

Fields

The following fields are returned by SELECT queries:

The credential configuration was successfully returned.

NameDatatypeDescription
account_idstring
credentials_idstring
credentials_namestring
aws_credentialsobject
creation_timeinteger

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectGets a Databricks credential configuration object for an account, both specified by ID.
listselectGets all Databricks credential configurations associated with an account specified by ID.
createinsertCreates a Databricks credential configuration that represents cloud cross-account credentials for a specified account. Databricks uses this to set up network infrastructure properly to host Databricks clusters. For your AWS IAM role, you need to trust the External ID (the Databricks Account API account ID) in the returned credential object, and configure the required access policy.
deletedeleteDeletes a Databricks credential configuration object for an account, both specified by ID. You cannot delete a credential that is associated with any workspace.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription

SELECT examples

Gets a Databricks credential configuration object for an account, both specified by ID.

SELECT
account_id,
credentials_id,
credentials_name,
aws_credentials,
creation_time
FROM databricks_account.provisioning.credentials;

INSERT examples

Creates a Databricks credential configuration that represents cloud cross-account credentials for a specified account. Databricks uses this to set up network infrastructure properly to host Databricks clusters. For your AWS IAM role, you need to trust the External ID (the Databricks Account API account ID) in the returned credential object, and configure the required access policy.

INSERT INTO databricks_account.provisioning.credentials (
data__credentials_name,
data__aws_credentials
)
SELECT
'{{ credentials_name }}',
'{{ aws_credentials }}'
;

DELETE examples

Deletes a Databricks credential configuration object for an account, both specified by ID. You cannot delete a credential that is associated with any workspace.

DELETE FROM databricks_account.provisioning.credentials;