Skip to content

Commit

Permalink
fix(external-backup): after some changes in GCP export methods, new p…
Browse files Browse the repository at this point in the history
…ermissions are required for exporting dumps
  • Loading branch information
DeLoWaN committed Oct 15, 2024
1 parent 600e0a9 commit 27f56b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/backup/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ resource "google_storage_bucket_iam_member" "sql_instance_account" {
count = var.enable_export_backup ? 1 : 0
bucket = split("/", var.export_uri)[2] #Get the name of the bucket out of the URI
member = "serviceAccount:${data.google_sql_database_instance.backup_instance.service_account_email_address}"
role = "roles/storage.objectCreator"
role = "roles/storage.objectAdmin"
}

# We want to get notified if there hasn't been at least one successful backup in a day
Expand Down

0 comments on commit 27f56b4

Please sign in to comment.