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
//main.tf# Resource Monitor w/ Parametrized Valuesresource"snowflake_resource_monitor""my_resource_monitor" {
name="MY_RESOURCE_MONITOR"credit_quota=var.my_resource_monitor_credit_quotafrequency=var.my_resource_monitor_frequencystart_timestamp=var.my_resource_monitor_start_timestampend_timestamp=var.my_resource_monitor_end_timestampnotify_triggers=var.my_resource_monitor_notify_triggerssuspend_trigger=var.my_resource_monitor_suspend_triggersuspend_immediate_trigger=var.my_resource_monitor_suspend_immediate_triggerset_for_account=var.my_resource_monitor_set_for_accountnotify_users=var.my_resource_monitor_notify_userswarehouses=var.my_resource_monitor_warehouses
}
resource"snowflake_grant_privileges_to_role""my_resource_monitor-grant" {
depends_on=[snowflake_resource_monitor.my_resource_monitor]
# Map(Object) of grant information where the key is the role name.for_each=var.my_resource_monitor_grantsprivileges=each.value.my_resource_monitor_privilegesrole_name=each.keyon_account_object {
object_type=var.object_type# "RESOURCE MONITOR"object_name=snowflake_resource_monitor.my_resource_monitor.name
}
with_grant_option=each.value.my_resource_monitor_with_grant_option
}
Expected Behavior
The privileges parameter of the snowflake_grant_privileges_to_role should only be marked as changed when the list of priveleges has been altered.
Actual Behavior
The privileges parameter of the snowflake_grant_privileges_to_role is marked as changed, regardless of any changes being made to the privileges parameter.
This image depicts 82 warehouse grant changes that were not actually changed - terraform plan output. terraform apply runs fine.
Steps to Reproduce
terraform plan
terraform apply
How much impact is this issue causing?
Medium
Logs
No response
Additional Information
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Terraform CLI and Provider Versions
Terraform Configuration
Expected Behavior
The
privileges
parameter of the snowflake_grant_privileges_to_role should only be marked as changed when the list of priveleges has been altered.Actual Behavior
The
privileges
parameter of the snowflake_grant_privileges_to_role is marked as changed, regardless of any changes being made to theprivileges
parameter.This image depicts 82 warehouse grant changes that were not actually changed - terraform plan output. terraform apply runs fine.

Steps to Reproduce
terraform plan
terraform apply
How much impact is this issue causing?
Medium
Logs
No response
Additional Information
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: