You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Grant CREATE SCHEMA on DB_DEV to ETLDEVELOPER roleresource"snowflake_grant_privileges_to_account_role""create_schema_on_db_dev" {
provider=snowflake.securityterraformeron_database=snowflake_database.db_dev.nameprivileges=["CREATE SCHEMA"]
account_role_name="ETLDEVELOPER"
}
Category
category:grants
Object type(s)
resource:grant_privileges_to_database_role
Expected Behavior
I followed this pattern from the examples on the terraform repository documentation
##################################
Terraform plan complained about the on_database parameter
Error: Unsupported argument
│
│ on database_role_grants.tf line 31, in resource "snowflake_grant_privileges_to_account_role" "create_schema_on_db_dev":
│ 31: on_database = snowflake_database.db_dev.name
│
│ An argument named "on_database" is not expected here.
Steps to Reproduce
You just have to use the block as suggested in the documentation example and then terraform plan or terraform validate to get it to throw the errors.
Terraform CLI Version
1.9.5
Terraform Provider Version
0.95.0
Terraform Configuration
Category
category:grants
Object type(s)
resource:grant_privileges_to_database_role
Expected Behavior
I followed this pattern from the examples on the terraform repository documentation
##################################
on database privileges
##################################
list of privileges
resource "snowflake_grant_privileges_to_database_role" "example" {
privileges = ["CREATE", "MONITOR"]
database_role_name = snowflake_database_role.db_role.fully_qualified_name
on_database = snowflake_database_role.db_role.database
}
Actual Behavior
Terraform plan complained about the on_database parameter
Error: Unsupported argument
│
│ on database_role_grants.tf line 31, in resource "snowflake_grant_privileges_to_account_role" "create_schema_on_db_dev":
│ 31: on_database = snowflake_database.db_dev.name
│
│ An argument named "on_database" is not expected here.
Steps to Reproduce
You just have to use the block as suggested in the documentation example and then terraform plan or terraform validate to get it to throw the errors.
How much impact is this issue causing?
High
Logs
https://gist.github.com/usbrandon/cee0481cf62ab15a1645ccb78c6004cc
Additional Information
No response
Would you like to implement a fix?
The text was updated successfully, but these errors were encountered: