databricks-cli icon indicating copy to clipboard operation
databricks-cli copied to clipboard

Issue updating Job ACLs with Stack command

Open vljacobs opened this issue 3 years ago • 1 comments

Job ACLs do not get updated when using the Stack command.

databricks stack deploy $pathToConfig

The ACLs are deploy as expected when the job is first created, but further updates to the ACL's are not applied to the Job when using the --overwrite parameter.

databricks stack deploy $pathToConfig --overwrite

{
    "id": "Example-Job",
    "service": "jobs",
    "properties": {
        "access_control_list": [
            {
                "group_name": "ExampleGroup",
                "permission_level": "CAN_VIEW"
            }
        ],
 ...

vljacobs avatar May 24 '22 03:05 vljacobs

@vljacobs have you tried using Databricks Terraform provider permissions resource? https://registry.terraform.io/providers/databrickslabs/databricks/latest/docs/resources/permissions

it's far more mature than the stack command.

nfx avatar May 31 '22 20:05 nfx