Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add snowflake grant ownership resource #2604

Merged
merged 15 commits into from
Mar 14, 2024
2 changes: 1 addition & 1 deletion docs/resources/grant_privileges_to_account_role.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ Optional:

## Import

~> **Note** All the ..._name parts should be fully qualified names, e.g. for schema object it is `"<database_name>"."<schema_name>"."<object_name>"`
~> **Note** All the ..._name parts should be fully qualified names (where every part is quoted), e.g. for schema object it is `"<database_name>"."<schema_name>"."<object_name>"`
~> **Note** To import all_privileges write ALL or ALL PRIVILEGES in place of `<privileges>`

Import is supported using the following syntax:
Expand Down
10 changes: 5 additions & 5 deletions docs/resources/grant_privileges_to_database_role.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ Required:

Optional:

- `in_database` (String)
- `in_schema` (String)
- `in_database` (String) The fully qualified name of the database.
- `in_schema` (String) The fully qualified name of the schema.


<a id="nestedblock--on_schema_object--future"></a>
Expand All @@ -230,12 +230,12 @@ Required:

Optional:

- `in_database` (String)
- `in_schema` (String)
- `in_database` (String) The fully qualified name of the database.
- `in_schema` (String) The fully qualified name of the schema.

## Import

~> **Note** All the ..._name parts should be fully qualified names, e.g. for database object it is `"<database_name>"."<object_name>"`
~> **Note** All the ..._name parts should be fully qualified names (where every part is quoted), e.g. for database object it is `"<database_name>"."<object_name>"`
~> **Note** To import all_privileges write ALL or ALL PRIVILEGES in place of `<privileges>`

Import is supported using the following syntax:
Expand Down
2 changes: 1 addition & 1 deletion docs/technical-documentation/resource_migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ resource "snowflake_grant_privileges_to_account_role" "new_resource" {
depends_on = [snowflake_database.test, snowflake_role.a, snowflake_role.b]
for_each = toset([snowflake_role.a.name, snowflake_role.b.name])
privileges = ["USAGE"]
role_name = each.key
account_role_name = each.key
on_account_object {
object_type = "DATABASE"
object_name = snowflake_database.test.name
Expand Down
Loading
Loading