Fix ip exhaustion by increasing services ip address range.
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user