Skip to content

Commit aec406d

Browse files
authored
remove unneeded workarounds
1 parent ddb9fdf commit aec406d

File tree

3 files changed

+0
-18
lines changed
  • cloud_sql/sqlserver_instance_switchover

3 files changed

+0
-18
lines changed

cloud_sql/sqlserver_instance_switchover/create_dr_replica/main.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ resource "google_sql_database_instance" "original-primary" {
3030
enabled = "true"
3131
}
3232
}
33-
# set `deletion_protection` to true, will ensure that one cannot accidentally delete this instance by
34-
# use of Terraform whereas `deletion_protection_enabled` flag protects this instance at the GCP level.
35-
deletion_protection = false
3633
}
3734

3835
resource "google_sql_database_instance" "dr_replica" {
@@ -55,8 +52,5 @@ resource "google_sql_database_instance" "dr_replica" {
5552
tier = "db-perf-optimized-N-2"
5653
edition = "ENTERPRISE_PLUS"
5754
}
58-
# set `deletion_protection` to true, will ensure that one cannot accidentally delete this instance by
59-
# use of Terraform whereas `deletion_protection_enabled` flag protects this instance at the GCP level.
60-
deletion_protection = false
6155
}
6256
# [END cloud_sql_sqlserver_instance_create_dr_replica]

cloud_sql/sqlserver_instance_switchover/switchover_begin/main.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ resource "google_sql_database_instance" "original-primary" {
2929
enabled = "true"
3030
}
3131
}
32-
# set `deletion_protection` to true, will ensure that one cannot accidentally delete this instance by
33-
# use of Terraform whereas `deletion_protection_enabled` flag protects this instance at the GCP level.
34-
deletion_protection = false
3532
}
3633

3734
resource "google_sql_database_instance" "dr_replica" {
@@ -54,8 +51,5 @@ resource "google_sql_database_instance" "dr_replica" {
5451
tier = "db-perf-optimized-N-2"
5552
edition = "ENTERPRISE_PLUS"
5653
}
57-
# set `deletion_protection` to true, will ensure that one cannot accidentally delete this instance by
58-
# use of Terraform whereas `deletion_protection_enabled` flag protects this instance at the GCP level.
59-
deletion_protection = false
6054
}
6155
# [END cloud_sql_sqlserver_instance_switchover_begin]

cloud_sql/sqlserver_instance_switchover/switchover_finish/main.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ resource "google_sql_database_instance" "original-primary" {
3737
enabled = "true"
3838
}
3939
}
40-
# set `deletion_protection` to true, will ensure that one cannot accidentally delete this instance by
41-
# use of Terraform whereas `deletion_protection_enabled` flag protects this instance at the GCP level.
42-
deletion_protection = false
4340
}
4441

4542
resource "google_sql_database_instance" "dr_replica" {
@@ -55,8 +52,5 @@ resource "google_sql_database_instance" "dr_replica" {
5552
tier = "db-perf-optimized-N-2"
5653
edition = "ENTERPRISE_PLUS"
5754
}
58-
# set `deletion_protection` to true, will ensure that one cannot accidentally delete this instance by
59-
# use of Terraform whereas `deletion_protection_enabled` flag protects this instance at the GCP level.
60-
deletion_protection = false
6155
}
6256
# [END cloud_sql_sqlserver_instance_switchover_finish]

0 commit comments

Comments
 (0)