Support instance deletion protection (#56)
also bump google provider version to 3.57.0
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
provider "google-beta" {
|
||||
version = "~> 3.43.0"
|
||||
version = "~> 3.57.0"
|
||||
project = var.project
|
||||
region = var.region
|
||||
}
|
||||
@@ -80,6 +80,11 @@ module "mysql" {
|
||||
engine = var.mysql_version
|
||||
machine_type = var.machine_type
|
||||
|
||||
# To make it easier to test this example, we are disabling deletion protection so we can destroy the databases
|
||||
# during the tests. By default, we recommend setting deletion_protection to true, to ensure database instances are
|
||||
# not inadvertently destroyed.
|
||||
deletion_protection = false
|
||||
|
||||
# These together will construct the master_user privileges, i.e.
|
||||
# 'master_user_name'@'master_user_host' IDENTIFIED BY 'master_user_password'.
|
||||
# These should typically be set as the environment variable TF_VAR_master_user_password, etc.
|
||||
|
||||
Reference in New Issue
Block a user