From 5658f3050d7c3e2a210361f860797ba42121ef7b Mon Sep 17 00:00:00 2001 From: Andrea Cappelletti Date: Fri, 17 Jul 2026 18:11:36 -0400 Subject: [PATCH] catalog: price Cloud SQL db-g1-small tier Mirror c3xdev/c3x#49 in the served knowledge base: add the Small instance mapping + compute_small dimension so google_sql_database_instance with tier db-g1-small prices (~$25.55/mo) instead of being silently dropped. Already deployed to pricing.c3x.dev; this keeps the repo source in sync. --- catalog/gcp/google_sql_database_instance.toml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/catalog/gcp/google_sql_database_instance.toml b/catalog/gcp/google_sql_database_instance.toml index 31fc86c..9f7c8e0 100644 --- a/catalog/gcp/google_sql_database_instance.toml +++ b/catalog/gcp/google_sql_database_instance.toml @@ -47,6 +47,13 @@ attribute_filters = [ { key = "description", const = "Cloud SQL for PostgreSQL: Zonal - Micro instance in Americas" }, ] +[mappings.small] +service = "Cloud SQL" +product_family = "ApplicationServices" +attribute_filters = [ + { key = "description", const = "Cloud SQL for PostgreSQL: Zonal - Small instance in Americas" }, +] + [mappings.storage] service = "Cloud SQL" product_family = "ApplicationServices" @@ -69,6 +76,14 @@ when = 'default(default(settings_tier, tier), "db-f1-micro") == "db-f1-micro quantity = "monthly_hours()" rate = 'price("micro")' +[[dimensions]] +id = "compute_small" +label = "Database compute (g1-small)" +unit = "hours" +when = 'default(default(settings_tier, tier), "db-f1-micro") == "db-g1-small"' +quantity = "monthly_hours()" +rate = 'price("small")' + [[dimensions]] id = "vcpu" label = "Database vCPU"