Skip to main content

instance_profiles

Operations on a instance_profiles resource.

Overview

Nameinstance_profiles
TypeResource
Iddatabricks_workspace.compute.instance_profiles

Fields

NameDatatype
instance_profile_arnstring
is_meta_instance_profileboolean

Methods

NameAccessible byRequired ParamsDescription
listSELECTdeployment_nameList the instance profiles that the calling user can use to launch a cluster.
addINSERTdeployment_nameIn the UI, you can select the instance profile when launching clusters. This API is only available to admin users.
removeDELETEdeployment_nameRemove the instance profile with the provided ARN. Existing clusters with this instance profile will continue to function.
editREPLACEdeployment_nameThe only supported field to change is the optional IAM role ARN associated with the instance profile. It is required to specify the IAM role ARN if both of the following are true:

SELECT examples

SELECT
instance_profile_arn,
is_meta_instance_profile
FROM databricks_workspace.compute.instance_profiles
WHERE deployment_name = '{{ deployment_name }}';

INSERT example

Use the following StackQL query and manifest file to create a new instance_profiles resource.

/*+ create */
INSERT INTO databricks_workspace.compute.instance_profiles (
deployment_name,
data__instance_profile_arn
)
SELECT
'{{ deployment_name }}',
'{{ instance_profile_arn }}'
;

REPLACE example

Replaces a instance_profiles resource.

/*+ update */
-- replace field1, field2, etc. with the fields you want to update
REPLACE databricks_workspace.compute.instance_profiles
SET field1 = '{ value1 }',
field2 = '{ value2 }', ...
WHERE deployment_name = '{{ deployment_name }}';

DELETE example

Deletes a instance_profiles resource.

/*+ delete */
DELETE FROM databricks_workspace.compute.instance_profiles
WHERE deployment_name = '{{ deployment_name }}';