Skip to content

Commit

Permalink
Fix the typo (#2183)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-asawicki authored Nov 13, 2023
1 parent ed079d3 commit 4765410
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions docs/resources/role_ownership_grant.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,34 @@ description: |-



## Example Usage

```terraform
resource "snowflake_role" "role" {
name = "rking_test_role"
comment = "for testing"
}
resource "snowflake_role" "other_role" {
name = "rking_test_role2"
}
# ensure the Terraform user inherits ownership privileges for the rking_test_role role
# otherwise Terraform will fail to destroy the rking_test_role2 role due to insufficient privileges
resource "snowflake_role_grants" "grants" {
role_name = snowflake_role.role.name
roles = [
"ACCOUNTADMIN",
]
}
resource "snowflake_role_ownership_grant" "grant" {
on_role_name = snowflake_role.role.name
to_role_name = snowflake_role.other_role.name
current_grants = "COPY"
}
```

<!-- schema generated by tfplugindocs -->
## Schema
Expand All @@ -28,3 +55,11 @@ description: |-
### Read-Only

- `id` (String) The ID of this resource.

## Import

Import is supported using the following syntax:

```shell
terraform import snowflake_role_ownership_grant.example rolename
```

0 comments on commit 4765410

Please sign in to comment.