1
0
mirror of synced 2025-12-25 02:14:40 -05:00

Support instance deletion protection (#56)

also bump google provider version to 3.57.0
This commit is contained in:
Rob Morgan
2021-02-23 11:49:03 +08:00
committed by GitHub
parent f2a6c5d401
commit 0b560e6d0e
10 changed files with 58 additions and 20 deletions

View File

@@ -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.