How to Set Expiration Time for Delta Sharing URL in Databricks Using Terraform?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2024 11:07 PM
I am automating Delta Sharing from Databricks to non-Databricks recipients using Terraform. I can successfully create shares and recipients with my Terraform code, retrieve the sharing URL after creating the recipient, and see that the URL gets a default expiration time. However, I am facing an issue where I cannot set a custom expiration time for the URL through my Terraform code.
Here is the code snippet I am using to create the recipient:
resource "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)
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2024 12:21 AM
Hello, I did it yesterday through account console (idk if you can do it using terraform).
If you are an admin at higher level you can go in that window and enable your metastore to set a token with an expiration date. I hope I answer to your problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2024 02:15 AM