Skip to content

Commit 2b861e7

Browse files
introducing sql instance instantiation
1 parent 9d3b82d commit 2b861e7

File tree

1 file changed

+18
-0
lines changed
  • backupdr/backup_plan_association

1 file changed

+18
-0
lines changed

backupdr/backup_plan_association/main.tf

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,24 @@ resource "google_compute_disk" "default" {
5959
zone = "us-central1-a"
6060
}
6161

62+
resource "google_sql_database_instance" "default" {
63+
name = "instance-test"
64+
database_version = "MYSQL_8_0_41"
65+
region = "us-central1"
66+
settings {
67+
tier = "db-f1-micro"
68+
backup_configuration {
69+
enabled = true
70+
}
71+
}
72+
lifecycle {
73+
ignore_changes = [
74+
settings[0].backup_configuration[0].enabled,
75+
]
76+
}
77+
deletion_protection = false
78+
}
79+
6280
resource "google_backup_dr_backup_vault" "default" {
6381
provider = google-beta
6482
location = "us-central1"

0 commit comments

Comments
 (0)