Skip to content

Commit 57d3ee7

Browse files
committed
Enable backups on the DB instance
1 parent 2d23306 commit 57d3ee7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

infra/gcp/modules/common/main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ resource "google_sql_database_instance" "instance" {
8080
ipv4_enabled = false
8181
private_network = google_compute_network.vpc.id
8282
}
83+
backup_configuration {
84+
enabled = true
85+
location = var.region
86+
}
8387
}
8488
}
8589

0 commit comments

Comments
 (0)