-
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
[Feature]: New resource for Warehouse assignment to Resource Monitor #3019
Comments
Hey @jarach 👋 |
Hey @jarach 👋 |
Hey @jarach |
I will throw my hat inn on this issue, to demonstrate furter intresst for this feature. As @jarach I would highly appreciate that this be solved. Snowflakes own guidance on what roles to use for what aspect are quite clear, and currently we are forced by the provider to use a role with excessive privileges to create the warehouses. The currently proposed workarounds create a cascading set of privilege and/or timing issues in the provider. For this reason i see neither of the workarounds as viable from a security perspective. |
Hey @Ssvenkerud. Let's say we conditionally remove resource monitor management from the warehouse resource and introduce an entirely new resource that is responsible solely for warehouse-resource monitor attachments. This resource will still:
This option is really close to the proposed workaround, i.e.:
The only con I see is that unsafe execute does not provide a way to detect external changes, whereas the dedicated resource would. |
Hi @sfc-gh-asawicki If the resource is truly stand alone, the order of work can be managed with the As an alternative to not having it at all. I like the proposed solution. What caveats would be attached to this? |
Use Cases or Problem Statement
Any assignment to Resource Monitor requires ACCOUNTADMIN role. There is no "ALTER WAREHOUSE" in Snowflake-Labs provider, that can be executed separately with ACCOUNTADMIN role. It would be very convenient to have such option in order to:
Category
category:resource
Object type(s)
resource:resource_monitor, resource:warehouse
Proposal
Create a new resource for a resource assignment to a Resource Monitor
How much impact is this issue causing?
Low
Additional Information
Current workarounds are:
Would you like to implement a fix?
The text was updated successfully, but these errors were encountered: