Rename modules/cloudsql-instance deletion protection variables (#2135)

* Rename Cloud SQL deletion protection variables

* Fix tests
This commit is contained in:
Julio Castillo
2024-03-06 11:44:54 +01:00
committed by GitHub
parent e12cf83188
commit dfed7cc5bd
5 changed files with 50 additions and 48 deletions

View File

@@ -1,5 +1,5 @@
/**
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,12 +16,13 @@
# Set up CloudSQL
module "cloudsql" {
source = "../../../modules/cloudsql-instance"
project_id = module.project.project_id
name = "${var.prefix}-mysql"
database_version = local.cloudsql_conf.database_version
deletion_protection = var.deletion_protection
databases = [local.cloudsql_conf.db]
source = "../../../modules/cloudsql-instance"
project_id = module.project.project_id
name = "${var.prefix}-mysql"
database_version = local.cloudsql_conf.database_version
terraform_deletion_protection = var.deletion_protection
gcp_deletion_protection = var.deletion_protection
databases = [local.cloudsql_conf.db]
network_config = {
connectivity = {
psa_config = {

View File

@@ -1,5 +1,5 @@
/**
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -71,5 +71,6 @@ module "cloudsql" {
password = var.cloudsql_password
}
}
deletion_protection = false
terraform_deletion_protection = false
gcp_deletion_protection = false
}