Hello @Sudheer2,
Currently, the Terraform provider for Databricks does not support setting a custom expiration time for the generated token URL when creating a recipient with authentication_type = "TOKEN"
. The expiration time is automatically determined and cannot be explicitly specified in the Terraform configuration
For now, you might need to manage the token expiration manually or use the Databricks API directly to create the recipient with the desired expiration time.
There is a feature request internally to implement this.
Use the Databricks REST API to create a recipient with a custom expiration time:
curl -X POST https://<databricks-instance>/api/2.0/unity-catalog/recipients \
-H "Authorization: Bearer <your-access-token>" \
-H "Content-Type: application/json" \
-d '{
"name": "<recipient-name>",
"comment": "Created by API",
"authentication_type": "TOKEN",
"expiration_time": "2025-02-27T06:44:20.291Z"
}'