Skip to content

InstanceProfile

laktory.models.resources.databricks.InstanceProfile ยค

Bases: InstanceProfileBase

Databricks Instance Profile

Examples:

import io

from laktory import models

profile_yaml = '''
instance_profile_arn: arn:aws:iam::000000000000:instance-profile/my-role
'''
profile = models.resources.databricks.InstanceProfile.model_validate_yaml(
    io.StringIO(profile_yaml)
)
References
BASE DESCRIPTION
iam_role_arn

The AWS IAM role ARN of the role associated with the instance profile. It must have the form arn:aws:iam::<account-id>:role/<name>. This field is required if your role name and instance profile name do not match and you want to use the instance profile with Databricks SQL Serverless

TYPE: str | None | VariableType DEFAULT: None

instance_profile_arn

ARN attribute of aws_iam_instance_profile output, the EC2 instance profile association to AWS IAM role. This ARN would be validated upon resource creation

TYPE: str | VariableType

is_meta_instance_profile

Whether the instance profile is a meta instance profile. Used only in IAM credential passthrough

TYPE: bool | None | VariableType DEFAULT: None

skip_validation

For advanced usage only. If validation fails with an error message that does not indicate an IAM related permission issue, (e.g. 'Your requested instance type is not supported in your requested availability zone'), you can pass this flag to skip the validation and forcibly add the instance profile

TYPE: bool | None | VariableType DEFAULT: None