Hello Databricks Community,
I am using Terraform to create a Databricks recipient for sharing data with a non-Databricks user. The recipient is set up with authentication_type = "TOKEN", which generates a temporary URL to download a credentials file. By default, this URL expires after a certain period.
I would like to set a custom expiration time for the generated token (e.g., "2025-02-27T06:44:20.291Z"). However, it seems that Terraform is using the default expiration time and I can't find a way to specify the expiration time explicitly in the Terraform configuration.
Here’s the Terraform resource definition I am using:
hcl
Copy coderesource "databricks_recipient" "external_recipient" { name = var.recipient_name comment = "Created by Terraform" authentication_type = "TOKEN" ip_access_list { allowed_ip_addresses = [] # Define allowed IPv4 addresses (optional) } }
Questions:
- How can I set a custom expiration time for the generated token URL when creating a recipient using Terraform?
- Is there an option in the Databricks API or Terraform provider to specify the expiration time for the credentials file?
Thank you in advance for your help!