diff --git a/docs/resources/grant_privileges_to_account_role.md b/docs/resources/grant_privileges_to_account_role.md index 8947df66df..97da6b5105 100644 --- a/docs/resources/grant_privileges_to_account_role.md +++ b/docs/resources/grant_privileges_to_account_role.md @@ -179,7 +179,7 @@ resource "snowflake_grant_privileges_to_account_role" "example" { account_role_name = snowflake_account_role.db_role.name on_schema_object { object_type = "VIEW" - object_name = "\"${snowflake_schema.my_schema.fully_qualified_name}\".\"my_view\"" # note this is a fully qualified name! + object_name = snowflake_view.my_view.fully_qualified_name # note this is a fully qualified name! } } @@ -190,7 +190,7 @@ resource "snowflake_grant_privileges_to_account_role" "example" { account_role_name = snowflake_account_role.db_role.name on_schema_object { object_type = "VIEW" - object_name = "\"${snowflake_schema.my_schema.fully_qualified_name}\".\"my_view\"" # note this is a fully qualified name! + object_name = snowflake_view.my_view.fully_qualified_name # note this is a fully qualified name! } all_privileges = true with_grant_option = true diff --git a/docs/resources/grant_privileges_to_database_role.md b/docs/resources/grant_privileges_to_database_role.md index 89d2ba30cb..271388ecf4 100644 --- a/docs/resources/grant_privileges_to_database_role.md +++ b/docs/resources/grant_privileges_to_database_role.md @@ -109,7 +109,7 @@ resource "snowflake_grant_privileges_to_database_role" "example" { database_role_name = snowflake_database_role.db_role.fully_qualified_name on_schema_object { object_type = "VIEW" - object_name = "\"${snowflake_schema.my_schema.fully_qualified_name}\".\"my_view\"" # note this is a fully qualified name! + object_name = snowflake_view.my_view.fully_qualified_name # note this is a fully qualified name! } } @@ -118,7 +118,7 @@ resource "snowflake_grant_privileges_to_database_role" "example" { database_role_name = snowflake_database_role.db_role.fully_qualified_name on_schema_object { object_type = "VIEW" - object_name = "\"${snowflake_schema.my_schema.fully_qualified_name}\".\"my_view\"" # note this is a fully qualified name! + object_name = snowflake_view.my_view.fully_qualified_name # note this is a fully qualified name! } all_privileges = true with_grant_option = true diff --git a/examples/resources/snowflake_grant_privileges_to_account_role/resource.tf b/examples/resources/snowflake_grant_privileges_to_account_role/resource.tf index 94e40ec535..781507ac04 100644 --- a/examples/resources/snowflake_grant_privileges_to_account_role/resource.tf +++ b/examples/resources/snowflake_grant_privileges_to_account_role/resource.tf @@ -159,7 +159,7 @@ resource "snowflake_grant_privileges_to_account_role" "example" { account_role_name = snowflake_account_role.db_role.name on_schema_object { object_type = "VIEW" - object_name = "\"${snowflake_schema.my_schema.fully_qualified_name}\".\"my_view\"" # note this is a fully qualified name! + object_name = snowflake_view.my_view.fully_qualified_name # note this is a fully qualified name! } } @@ -170,7 +170,7 @@ resource "snowflake_grant_privileges_to_account_role" "example" { account_role_name = snowflake_account_role.db_role.name on_schema_object { object_type = "VIEW" - object_name = "\"${snowflake_schema.my_schema.fully_qualified_name}\".\"my_view\"" # note this is a fully qualified name! + object_name = snowflake_view.my_view.fully_qualified_name # note this is a fully qualified name! } all_privileges = true with_grant_option = true diff --git a/examples/resources/snowflake_grant_privileges_to_database_role/resource.tf b/examples/resources/snowflake_grant_privileges_to_database_role/resource.tf index b0c6c51f5a..4fb825f167 100644 --- a/examples/resources/snowflake_grant_privileges_to_database_role/resource.tf +++ b/examples/resources/snowflake_grant_privileges_to_database_role/resource.tf @@ -91,7 +91,7 @@ resource "snowflake_grant_privileges_to_database_role" "example" { database_role_name = snowflake_database_role.db_role.fully_qualified_name on_schema_object { object_type = "VIEW" - object_name = "\"${snowflake_schema.my_schema.fully_qualified_name}\".\"my_view\"" # note this is a fully qualified name! + object_name = snowflake_view.my_view.fully_qualified_name # note this is a fully qualified name! } } @@ -100,7 +100,7 @@ resource "snowflake_grant_privileges_to_database_role" "example" { database_role_name = snowflake_database_role.db_role.fully_qualified_name on_schema_object { object_type = "VIEW" - object_name = "\"${snowflake_schema.my_schema.fully_qualified_name}\".\"my_view\"" # note this is a fully qualified name! + object_name = snowflake_view.my_view.fully_qualified_name # note this is a fully qualified name! } all_privileges = true with_grant_option = true