Skip to content

Commit

Permalink
make fmt-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nfx committed Jul 27, 2022
1 parent 79590ed commit f6844bf
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
34 changes: 17 additions & 17 deletions docs/resources/mws_permissionassignment.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,55 +13,55 @@ Adding account group

```hcl
provider "databricks" {
<other properties>
account_id = <databricks account id>
// <other properties>
account_id = "<databricks account id>"
}
resource "databricks_group" "data_eng" {
display_name = "Data Engineering"
display_name = "Data Engineering"
}
resource "databricks_mws_permissionassignment" "add_admin_group" {
workspace_id = databricks_mws_workspaces.this.workspace_id
principal_id = databricks_group.data_eng.id
permissions = ["ADMIN"]
workspace_id = databricks_mws_workspaces.this.workspace_id
principal_id = databricks_group.data_eng.id
permissions = ["ADMIN"]
}
```

Adding account user

```hcl
provider "databricks" {
<other properties>
account_id = <databricks account id>
// <other properties>
account_id = "<databricks account id>"
}
resource "databricks_user" "me" {
user_name = "me@example.com"
}
resource "databricks_mws_permissionassignment" "add_user" {
workspace_id = databricks_mws_workspaces.this.workspace_id
principal_id = databricks_user.me.id
permissions = ["USER"]
workspace_id = databricks_mws_workspaces.this.workspace_id
principal_id = databricks_user.me.id
permissions = ["USER"]
}
```

Adding account service principal

```hcl
provider "databricks" {
<other properties>
account_id = <databricks account id>
// <other properties>
account_id = "<databricks account id>"
}
resource "databricks_service_principal" "sp" {
display_name = "Automation-only SP"
}
resource "databricks_mws_permissionassignment" "add_admin_spn" {
workspace_id = databricks_mws_workspaces.this.workspace_id
principal_id = databricks_service_principal.sp.id
permissions = ["ADMIN"]
workspace_id = databricks_mws_workspaces.this.workspace_id
principal_id = databricks_service_principal.sp.id
permissions = ["ADMIN"]
}
```
```
16 changes: 8 additions & 8 deletions docs/resources/permissionassignment.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ Adding workspace group

```hcl
resource "databricks_group" "data_eng" {
display_name = "Data Engineering"
display_name = "Data Engineering"
}
resource "databricks_permissionassignment" "add_admin_group" {
principal_id = databricks_group.data_eng.id
permissions = ["ADMIN"]
principal_id = databricks_group.data_eng.id
permissions = ["ADMIN"]
}
```

Expand All @@ -30,8 +30,8 @@ resource "databricks_user" "me" {
}
resource "databricks_permissionassignment" "add_user" {
principal_id = databricks_user.me.id
permissions = ["USER"]
principal_id = databricks_user.me.id
permissions = ["USER"]
}
```

Expand All @@ -43,7 +43,7 @@ resource "databricks_service_principal" "sp" {
}
resource "databricks_permissionassignment" "add_admin_spn" {
principal_id = databricks_service_principal.sp.id
permissions = ["ADMIN"]
principal_id = databricks_service_principal.sp.id
permissions = ["ADMIN"]
}
```
```

0 comments on commit f6844bf

Please sign in to comment.