You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix documentation for databricks_storage_credential and databricks_external_location data sources (#3588)
Changes include:
* Documented right structure returned by these data sources - the nested structures
weren't mentioned there at all.
* Fixed examples for both data sources
* Added `id` attribute for easier reference to the data sources
* Reformatted the rest of doc examples
Copy file name to clipboardExpand all lines: docs/data-sources/storage_credential.md
+22-26Lines changed: 22 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,8 +17,7 @@ data "databricks_storage_credential" "this" {
17
17
}
18
18
19
19
output "created_by" {
20
-
value = data.databricks_storage_credential.this.created_by
21
-
sensitive = false
20
+
value = data.databricks_storage_credential.this.storage_credential_info[0].created_by
22
21
}
23
22
```
24
23
@@ -30,30 +29,27 @@ output "created_by" {
30
29
31
30
This data source exports the following attributes:
32
31
33
-
*`metastore_id` - Unique identifier of the parent Metastore.
34
-
*`owner` - Username/groupname/sp application_id of the storage credential owner.
35
-
*`read_only` - Indicates whether the storage credential is only usable for read operations.
36
-
37
-
`aws_iam_role` credential details for AWS:
38
-
39
-
*`role_arn` - The Amazon Resource Name (ARN) of the AWS IAM role for S3 data access, of the form `arn:aws:iam::1234567890:role/MyRole-AJJHDSKSDF`
40
-
*`external_id` (output only) - The external ID used in role assumption to prevent confused deputy problem.
41
-
*`unity_catalog_iam_arn` (output only) - The Amazon Resource Name (ARN) of the AWS IAM user managed by Databricks. This is the identity that is going to assume the AWS IAM role.
42
-
43
-
`azure_managed_identity` managed identity credential details for Azure
44
-
45
-
*`access_connector_id` - The Resource ID of the Azure Databricks Access Connector resource, of the form `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-name/providers/Microsoft.Databricks/accessConnectors/connector-name`.
46
-
47
-
*`managed_identity_id` - The Resource ID of the Azure User Assigned Managed Identity associated with Azure Databricks Access Connector, of the form `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-name/providers/Microsoft.ManagedIdentity/userAssignedIdentities/user-managed-identity-name`.
48
-
49
-
`databricks_gcp_service_account` credential details for GCP:
50
-
51
-
*`email` - The email of the GCP service account created, to be granted access to relevant buckets.
52
-
53
-
`azure_service_principal` service principal credential details for Azure:
54
-
55
-
*`directory_id` - The directory ID corresponding to the Azure Active Directory (AAD) tenant of the application
56
-
*`application_id` - The application ID of the application registration within the referenced AAD tenant
32
+
*`id` - Unique ID of storage credential.
33
+
*`storage_credential_info` - array of objects with information about storage credential.
34
+
*`metastore_id` - Unique identifier of the parent Metastore.
35
+
*`owner` - Username/groupname/sp application_id of the storage credential owner.
36
+
*`read_only` - Indicates whether the storage credential is only usable for read operations.
37
+
*`created_at` - Time at which this catalog was created, in epoch milliseconds.
38
+
*`created_by` - Username of catalog creator.
39
+
*`updated_at` - Time at which this catalog was last modified, in epoch milliseconds.
40
+
*`updated_by` - Username of user who last modified catalog.
41
+
*`aws_iam_role` credential details for AWS:
42
+
*`role_arn` - The Amazon Resource Name (ARN) of the AWS IAM role for S3 data access, of the form `arn:aws:iam::1234567890:role/MyRole-AJJHDSKSDF`
43
+
*`external_id` (output only) - The external ID used in role assumption to prevent confused deputy problem.
44
+
*`unity_catalog_iam_arn` (output only) - The Amazon Resource Name (ARN) of the AWS IAM user managed by Databricks. This is the identity that is going to assume the AWS IAM role.
45
+
*`azure_managed_identity` managed identity credential details for Azure
46
+
*`access_connector_id` - The Resource ID of the Azure Databricks Access Connector resource, of the form `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-name/providers/Microsoft.Databricks/accessConnectors/connector-name`.
47
+
*`managed_identity_id` - The Resource ID of the Azure User Assigned Managed Identity associated with Azure Databricks Access Connector, of the form `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-name/providers/Microsoft.ManagedIdentity/userAssignedIdentities/user-managed-identity-name`.
48
+
*`azure_service_principal` service principal credential details for Azure:
49
+
*`directory_id` - The directory ID corresponding to the Azure Active Directory (AAD) tenant of the application
50
+
*`application_id` - The application ID of the application registration within the referenced AAD tenant
51
+
*`databricks_gcp_service_account` credential details for GCP:
52
+
*`email` - The email of the GCP service account created, to be granted access to relevant buckets.
0 commit comments