diff --git a/pkg/resources/database_grant.go b/pkg/resources/database_grant.go index e0920dbb4a..39db910f83 100644 --- a/pkg/resources/database_grant.go +++ b/pkg/resources/database_grant.go @@ -140,6 +140,13 @@ func ReadDatabaseGrant(d *schema.ResourceData, meta interface{}) error { return err } + // 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) }