-
Notifications
You must be signed in to change notification settings - Fork 428
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add resource monitors to grant ownership
References: #3318
- Loading branch information
1 parent
7af9634
commit 74a9e62
Showing
7 changed files
with
81 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
pkg/resources/testdata/TestAcc_GrantOwnership/OnObject_ResourceMonitor_ToAccountRole/test.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
resource "snowflake_account_role" "test" { | ||
name = var.account_role_name | ||
} | ||
|
||
resource "snowflake_resource_monitor" "test" { | ||
name = var.resource_monitor_name | ||
} | ||
|
||
resource "snowflake_grant_ownership" "test" { | ||
account_role_name = snowflake_account_role.test.name | ||
on { | ||
object_type = "RESOURCE MONITOR" | ||
object_name = snowflake_resource_monitor.test.name | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...urces/testdata/TestAcc_GrantOwnership/OnObject_ResourceMonitor_ToAccountRole/variables.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
variable "account_role_name" { | ||
type = string | ||
} | ||
|
||
variable "resource_monitor_name" { | ||
type = string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters