Skip to content

Commit

Permalink
Accountadmin for granting imported privileges
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-r-rose committed Oct 7, 2024
1 parent 4e74474 commit ca7d7a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion terraform/snowflake/modules/database/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ resource "snowflake_database" "this" {
data_retention_time_in_days = var.data_retention_time_in_days

lifecycle {
prevent_destroy = true
prevent_destroy = false
}
}

Expand Down
1 change: 1 addition & 0 deletions terraform/snowflake/modules/elt/roles.tf
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ resource "snowflake_grant_account_role" "logging_to_logger" {

# Imported privileges for logging
resource "snowflake_grant_privileges_to_account_role" "imported_privileges_to_logger" {
provider = snowflake.accountadmin
account_role_name = snowflake_role.logger.name
privileges = ["IMPORTED PRIVILEGES"]
on_account_object {
Expand Down

0 comments on commit ca7d7a1

Please sign in to comment.