Fix ip exhaustion by increasing services ip address range.

This commit is contained in:
Tom Alexander
2021-07-13 20:50:43 -04:00
parent 2cf9f93de6
commit 40f4a8c398
4 changed files with 22 additions and 37 deletions

View File

@@ -25,11 +25,14 @@ variable "private_network_id" {
type = string
}
resource "google_sql_database_instance" "instance" {
project = var.project
region = var.region
name = "my-database-instance"
resource "random_id" "cloudsql" {
byte_length = 4
}
resource "google_sql_database_instance" "instance" {
project = var.project
region = var.region
name = "my-database-instance-${random_id.cloudsql.hex}"
database_version = var.db_version
settings {
@@ -41,5 +44,6 @@ resource "google_sql_database_instance" "instance" {
}
}
deletion_protection = "true"
deletion_protection = "false"
# deletion_protection = "true"
}