Make public IP address quota based on actual use.

This commit is contained in:
Tom Alexander 2025-03-22 17:14:10 -04:00
parent cbab018652
commit 9d0acdac13
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -1,5 +1,10 @@
# TODO: Make public IP quota dependent on var.public_ingress and update the amount to match what is expected to be spun up.
locals {
num_clusters = 14
num_public_ip_addresses = var.ingress_type == "gce" ? 10 * local.num_clusters : local.num_clusters
}
# resource "google_cloud_quotas_quota_preference" "clusters_per_region" {
# count = var.quota_email == null ? 0 : 1
# parent = "projects/${google_project.project.project_id}"
@ -24,7 +29,7 @@
# quota_id = "IN-USE-ADDRESSES-per-project-region"
# contact_email = var.quota_email
# quota_config {
# preferred_value = 70
# preferred_value = local.num_public_ip_addresses
# }
# justification = var.quota_justification
# depends_on = [google_project_service.service["cloudquotas"], ]