cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to Set Expiration Time for Delta Sharing URL in Databricks Using Terraform?

meghana_tulla
New Contributor

 

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)
}
}

1 REPLY 1

jeremy98
New Contributor II

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

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group