instance_profiles
Operations on a instance_profiles
resource.
Overview
Name | instance_profiles |
Type | Resource |
Id | databricks_workspace.compute.instance_profiles |
Fields
Name | Datatype |
---|---|
instance_profile_arn | string |
is_meta_instance_profile | boolean |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list | SELECT | deployment_name | List the instance profiles that the calling user can use to launch a cluster. |
add | INSERT | deployment_name | In the UI, you can select the instance profile when launching clusters. This API is only available to admin users. |
remove | DELETE | deployment_name | Remove the instance profile with the provided ARN. Existing clusters with this instance profile will continue to function. |
edit | REPLACE | deployment_name | The 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.
- instance_profiles
- Manifest
/*+ create */
INSERT INTO databricks_workspace.compute.instance_profiles (
deployment_name,
data__instance_profile_arn
)
SELECT
'{{ deployment_name }}',
'{{ instance_profile_arn }}'
;
- name: your_resource_model_name
props:
- name: instance_profile_arn
value: arn:aws:iam::123456789012:instance-profile/my-profile
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 }}';