-
Notifications
You must be signed in to change notification settings - Fork 427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plan always wants to add USAGE permission, although it already exists #2633
Comments
Hey @nick-amplify |
Usage is definitely shown as one of the grants when I run I'm not sure if terraform cloud gives me access to the raw snowflake commands that it runs. I am looking for them now. If found, I will update this ticket |
As far as I remember the only thing you need to set is the resource "snowflake_warehouse" "test" {
name = "test_warehouse_grants"
}
resource "snowflake_role" "test" {
name = "test_account_role_grants"
}
resource "snowflake_grant_privileges_to_account_role" "test" {
privileges = ["USAGE", "MONITOR", "OPERATE", "MODIFY"]
account_role_name = snowflake_role.test.name
on_account_object {
object_type = "WAREHOUSE"
object_name = snowflake_warehouse.test.name
}
} Try to post the logs with |
Hey 👋 |
Closing due to long inactivity. If the issue persists, please create another issue. |
Terraform CLI and Provider Versions
Terraform Cloud, terraform v1.6.5
snowflake-tf-provider v0.87.2
Terraform Configuration
Expected Behavior
I expect the warehouse to be created with all permissions.
Actual Behavior
Warehouse is created.
On all following plans, the plan is shown as adding the USAGE permission, although it already exists. This results in the plan always showing a change that should not be happening.
Steps to Reproduce
How much impact is this issue causing?
Medium
Logs
No response
Additional Information
This is a similar issue to: #2533
however, I upgrade the snowflake provider to v0.87.2, and the issue persists.
The text was updated successfully, but these errors were encountered: