[Bug]: snowflake_grant_privileges_to_database_role + on_schema_object + object_type_plural + SECRETS gives 'Error: 001003 (42000): SQL compilation error' #3090
Labels
bug
Used to mark issues with provider's incorrect behavior
Terraform CLI Version
1.9.5
Terraform Provider Version
0.94.1
Terraform Configuration
Category
category:grants
Object type(s)
resource:grant_privileges_to_database_role
Expected Behavior
Grant privileges to ALL SECRETS in DATABASE.SCHEMA
Actual Behavior
Error: An error occurred when granting privileges to database role
with module.main.snowflake_grant_privileges_to_database_role.test,
on ....\modules\main\test.tf line 7, in resource "snowflake_grant_privileges_to_database_role" "test":
7: resource "snowflake_grant_privileges_to_database_role" "test" {
Id: "DEV_HME_RAW_DB"."DBR_TEST_SC"|false|false|READ|OnSchemaObject|OnAll|SECRETS|InSchema|"DEV_HME_RAW_DB"."SECRETS_SC"
Database role name: {DEV_HME_RAW_DB DBR_TEST_SC}
Error: 001003 (42000): SQL compilation error:
syntax error line 1 at position 26 unexpected 'IN'.
Steps to Reproduce
Apply provided terraform piece of code.
How much impact is this issue causing?
Low
Logs
No response
Additional Information
'snowflake_grant_privileges_to_database_role' is working for other schema object like: TABLES, VIEWS, STAGES, etc.
Would you like to implement a fix?
The text was updated successfully, but these errors were encountered: