In Delta Sharing, a provider is an entity that shares data with a recipient. Within a metastore, Unity Catalog provides the ability to create a provider which contains a list of shares that have been shared with you.
A databricks_provider
is contained within databricks_metastore and can contain a list of shares that have been shared with you.
Note that Databricks to Databricks sharing automatically creates the provider.
resource "databricks_provider" "dbprovider" {
name = "terraform-test-provider"
comment = "made by terraform 2"
authentication_type = "TOKEN"
recipient_profile_str = jsonencode(
{
"shareCredentialsVersion" : 1,
"bearerToken" : "token",
"endpoint" : "endpoint",
"expirationTime" : "expiration-time"
}
)
}
The following arguments are required:
name
- Name of provider. Change forces creation of a new resource.comment
- (Optional) Description about the provider.authentication_type
- (Optional) The delta sharing authentication type. Valid values are TOKEN
.recipient_profile_str
- (Optional) This is the json file that is created from a recipient url.In addition to all arguments above, the following attributes are exported:
id
- ID of this provider - same as the name
.The following resources are used in the same context: