Skip to content

[FEATURE] New feature request - databricks_access_request_destinations #4950

@w0ut0

Description

@w0ut0

Use-cases

Access request destinations are now in public preview. The API is also available, would be cool to do this via Terraform as well.

We create all of our schemas and catalogs using TF, using yaml as config layer. We have an 'owner' field for these objects, so would be nice to setup access requests destinations as well.

Attempted Solutions

na

Proposal

catalog level

resource 'databricks_access_request_destinations' 'mycatalog' {
  provider = databricks.workspace
  catalog = 'mycatalog'
  destination {
    destination_id = '[email protected]'
    destination_type = 'EMAIL'
  }
  destination {
    destination_id = '789e0123-e89b-12d3-a456-426614174002'
    destination_type = 'MICROSOFT_TEAMS'
  }
  destination {
    destination_id = 'abcde123-e89b-12d3-a456-426614174003'
    destination_type = 'GENERIC_WEBHOOK'
  }   
  destination {
    destination_id = '456e7890-e89b-12d3-a456-426614174001'
    destination_type = 'SLACK'
  }
  destination {
    destination_id = 'https://www.databricks.com/'
    destination_type = 'URL'
  }}
}

or schema level

resource 'databricks_access_request_destinations' 'myschema' {
  provider = databricks.workspace
  schema= 'mycatalog.myschema'
  destination {
    destination_id = '[email protected]'
    destination_type = 'EMAIL'
  }
  destination {
    destination_id = '789e0123-e89b-12d3-a456-426614174002'
    destination_type = 'MICROSOFT_TEAMS'
  }
  destination {
    destination_id = 'abcde123-e89b-12d3-a456-426614174003'
    destination_type = 'GENERIC_WEBHOOK'
  }   
  destination {
    destination_id = '456e7890-e89b-12d3-a456-426614174001'
    destination_type = 'SLACK'
  }
  destination {
    destination_id = 'https://www.databricks.com/'
    destination_type = 'URL'
  }}
}

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions