diff --git a/pkg/resources/database_grant.go b/pkg/resources/database_grant.go index 96362ca5ab..4238d0c053 100644 --- a/pkg/resources/database_grant.go +++ b/pkg/resources/database_grant.go @@ -123,6 +123,13 @@ func ReadDatabaseGrant(d *schema.ResourceData, meta interface{}) error { } } + // IMPORTED PRIVILEGES is not a real resource, so we can't actually verify + // that it is still there. However, it is needed to grant usage for the snowflake database to custom roles. + // Just exit for now + if grantID.Privilege == "IMPORTED PRIVILEGES" { + return nil + } + builder := snowflake.DatabaseGrant(grantID.DatabaseName) return readGenericGrant(d, meta, databaseGrantSchema, builder, false, validDatabasePrivileges) }