Skip to content

Commit 948bf08

Browse files
authored
[Doc] Fix databricks_grant regarding metastore_id description (#4164)
I found the mistakes in the doc: https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/grant so let me fix them 🙇 ## Changes <!-- Summary of your changes that are easy to understand --> ## Tests <!-- How is this tested? Please see the checklist below and also describe any other relevant tests --> - [ ] `make test` run locally - [x] relevant change in `docs/` folder - [ ] covered with integration tests in `internal/acceptance` - [ ] relevant acceptance tests are passing - [ ] using Go SDK
1 parent e504790 commit 948bf08

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/resources/grant.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,15 @@ See [databricks_grants Metastore grants](grants.md#metastore-grants) for the lis
3030

3131
```hcl
3232
resource "databricks_grant" "sandbox_data_engineers" {
33+
metastore = "metastore_id"
34+
3335
principal = "Data Engineers"
3436
privileges = ["CREATE_CATALOG", "CREATE_EXTERNAL_LOCATION"]
3537
}
3638
3739
resource "databricks_grant" "sandbox_data_sharer" {
40+
metastore = "metastore_id"
41+
3842
principal = "Data Sharer"
3943
privileges = ["CREATE_RECIPIENT", "CREATE_SHARE"]
4044
}
@@ -46,7 +50,6 @@ See [databricks_grants Catalog grants](grants.md#catalog-grants) for the list of
4650

4751
```hcl
4852
resource "databricks_catalog" "sandbox" {
49-
metastore_id = databricks_metastore.this.id
5053
name = "sandbox"
5154
comment = "this catalog is managed by terraform"
5255
properties = {

0 commit comments

Comments
 (0)