-
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
New resource monitor SDK unexpected behavior #1990
Comments
Update on this topic: Removing the resource from the state and re-importing solves the issue! |
Hey 👋 |
Update: I just tested it, and this issue won't occur in the upcoming version of the provider. This case may happen when a resource monitor doesn't exist on the Snowflake side (e.g., due to manual removal), but the provider thinks otherwise and tries to read its configuration from Snowflake. |
## Changes - Add ValuePresent assert to our custom assertions - Add ToConfigValues function for every model - Update Resource Monitor SDK + unit and integration tests - Update Resource Monitor Resource + acc tests - Handle issues connected to the resource monitor (mostly timestamp format difference causing infinite plan or only trigger updates causing SQL compilation error): - #1500 - #1624 - #1716 - #1754 - #1821 - #1832 - #1990 ## Next pr - Adjust examples and update migration notes - Data source (impl, tests, examples, migration notes) ## References * [CREATE RESOURCE MONITOR](https://docs.snowflake.com/en/sql-reference/sql/create-resource-monitor)
## Changes - Add ValuePresent assert to our custom assertions - Add ToConfigValues function for every model - Update Resource Monitor SDK + unit and integration tests - Update Resource Monitor Resource + acc tests - Handle issues connected to the resource monitor (mostly timestamp format difference causing infinite plan or only trigger updates causing SQL compilation error): - #1500 - #1624 - #1716 - #1754 - #1821 - #1832 - #1990 ## Next pr - Adjust examples and update migration notes - Data source (impl, tests, examples, migration notes) ## References * [CREATE RESOURCE MONITOR](https://docs.snowflake.com/en/sql-reference/sql/create-resource-monitor)
Hey 👋 |
Closing due to long inactivity. Please, create another issue if you think the problem is still not resolved. |
Provider Version
0.69.0
Terraform Version
1.5.4
Describe the bug
After upgrading the provider to version
0.69.0
(where the new resource monitor SDK starts being used), myterraform plan
fails withError: object does not exist or not authorized
when the object exists in the account.Expected behavior
For the
terraform plan
not to fail.Code samples and commands
Resource monitor definition:
The text was updated successfully, but these errors were encountered: