Closed markgandy closed 6 months ago
@markgandy where do you see CREATE ALERT permission? they are not listed here: https://docs.snowflake.com/en/user-guide/security-access-control-privileges#alert-privileges
@markgandy where do you see CREATE ALERT permission? they are not listed here: https://docs.snowflake.com/en/user-guide/security-access-control-privileges#alert-privileges
@mlorek CREATE ALERT
is under the schema privileges
(and EXECUTE ALERT
is under global privileges)
This guide documents how they should be granted - https://docs.snowflake.com/en/user-guide/alerts
I would like to add to this issue you cannot grant the EXECUTE ALERT
privilege on the resource snowflake_alert
you get the same error as above.
Code Sample:
resource "snowflake_account_grant" "grant" {
roles = ["role1", "role2"]
privilege = "EXECUTE ALERT"
with_grant_option = false
}
Hey 👋 Closing the issue as it's referring to the deprecated resource and we're not supporting them. Please, try to use the latest provider version with the non-deprecated resources (e.g. snowflake_grant_privileges_to_account_role). If the issue persists on the non-deprecated resource, please create a new GitHub issue. The migration guide may help during migration to the latest resources. Here's a list of the latest, non-deprecated, grant resources:
Resources snowflake_grant_privileges_to_database_role snowflake_grant_privileges_to_account_role snowflake_grant_account_role snowflake_grant_database_role snowflake_grant_application_role (coming soon) snowflake_grant_privileges_to_share snowflake_grant_ownership (coming soon)
Data sources snowflake_grants
Provider Version
0.64.0
Terraform Version
1.3.0
Describe the bug
Snowflake alert resources were added recently, which is great. But I'm unable to create a role with the required privileges to create/execute alerts. I get errors in the plan for
CREATE ALERT
andEXECUTE ALERT
Expected behavior
We should be able to add grant alert privileges
Code samples and commands
Additional context
I guess including the alert privileges was missed when the alert resources were added