-
Notifications
You must be signed in to change notification settings - Fork 427
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: procedure and function grants (#1502)
* fix: procedure and function grants * fix: procedure and function grants * fix: procedure and function grants * update tests * update tests * update tests * update tests
- Loading branch information
1 parent
9a5fc2c
commit 0d08ea8
Showing
13 changed files
with
163 additions
and
640 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# format is database name | schema name | function signature | privilege | true/false for with_grant_option | ||
terraform import snowflake_function_grant.example 'dbName|schemaName|functionName(ARG1 ARG1TYPE, ARG2 ARG2TYPE):RETURNTYPE|USAGE|false' | ||
terraform import snowflake_function_grant.example 'dbName|schemaName|functionName(ARG1TYPE,ARG2TYPE)|USAGE|false' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,11 @@ | ||
resource "snowflake_function_grant" "grant" { | ||
database_name = "database" | ||
schema_name = "schema" | ||
function_name = "function" | ||
|
||
arguments { | ||
name = "a" | ||
type = "array" | ||
} | ||
arguments { | ||
name = "b" | ||
type = "string" | ||
} | ||
return_type = "string" | ||
|
||
privilege = "USAGE" | ||
roles = ["role1", "role2"] | ||
|
||
shares = ["share1", "share2"] | ||
|
||
on_future = false | ||
with_grant_option = false | ||
database_name = "database" | ||
schema_name = "schema" | ||
function_name = "function" | ||
argument_data_types = ["array", "string"] | ||
privilege = "USAGE" | ||
roles = ["role1", "role2"] | ||
shares = ["share1", "share2"] | ||
on_future = false | ||
with_grant_option = false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# format is database name | schema name | procedure signature | privilege | true/false for with_grant_option | ||
terraform import snowflake_procedure_grant.example 'dbName|schemaName|procedureName(ARG1 ARG1TYPE, ARG2 ARG2TYPE):RETURNTYPE|USAGE|false' | ||
terraform import snowflake_procedure_grant.example 'dbName|schemaName|procedureName(ARG1TYPE,ARG2TYPE)|USAGE|false' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,11 @@ | ||
resource "snowflake_procedure_grant" "grant" { | ||
database_name = "database" | ||
schema_name = "schema" | ||
procedure_name = "procedure" | ||
|
||
arguments { | ||
name = "a" | ||
type = "array" | ||
} | ||
arguments { | ||
name = "b" | ||
type = "string" | ||
} | ||
return_type = "string" | ||
|
||
privilege = "SELECT" | ||
roles = ["role1", "role2"] | ||
|
||
shares = ["share1", "share2"] | ||
|
||
on_future = false | ||
with_grant_option = false | ||
database_name = "database" | ||
schema_name = "schema" | ||
procedure_name = "procedure" | ||
argument_data_types = ["array", "string"] | ||
privilege = "SELECT" | ||
roles = ["role1", "role2"] | ||
shares = ["share1", "share2"] | ||
on_future = false | ||
with_grant_option = false | ||
} |
Oops, something went wrong.