From 91b71ef3cd1e7fd7e63ef5699a9b0e0d6becf8b7 Mon Sep 17 00:00:00 2001 From: Chris Christiansen Date: Wed, 27 May 2026 17:23:59 +0000 Subject: [PATCH] docs: update masterplan and terraform outputs --- MASTERPLAN.md | 22 ++++++++++++++++++++++ infrastructure/terraform/outputs.tf | 18 +++++++++--------- 2 files changed, 31 insertions(+), 9 deletions(-) diff --git a/MASTERPLAN.md b/MASTERPLAN.md index 554d4b6..d75fd0c 100644 --- a/MASTERPLAN.md +++ b/MASTERPLAN.md @@ -241,6 +241,28 @@ bash infrastructure/03-teardown.sh --- +## FASE CG — CostGuard (GCP Cost Intelligence Assistant) + +Produkt: AI-drevet webchat-assistent for sanntids GCP-kostnadsovervåking. +Stack: Dialogflow CX → OSVauco Cloud Run → Cloud Billing API → Gemini 2.5 Flash +Kostnad å drifte: ~$32-45/mnd. Salgspris: $99-299/mnd pr. kunde. +[] CG1 — Billing API-integrasjon i OSVauco-agentlaget +- Ny agent: ml/billing_agent.py +- Integrer Cloud Billing API (cloudbilling.googleapis.com) +- Endepunkt: GET /billing/summary → returnerer forbruk pr. tjeneste siste 30 dager +- Endepunkt: GET /billing/forecast → prognose basert på siste 7 dagers snitt +- Endepunkt: GET /billing/credits → aktive kreditter og utløpsdato +[] CG2 — Anomali-deteksjon +- Trigger: forbruk > 2x 7-dagers snitt for én tjeneste +- Publiser til billing_alerts Pub/Sub topic (allerede eksisterer) +[] CG3 — Webchat UI +- Dialogflow Messenger embed på vauco.no/costguard +- Standalone webapp: costguard.vauco.no +[] CG4 — Onboard første kunde via vauco-bootstrap +[] CG5 — Salgsdemo klar + +--- + ## INFRASTRUKTUR | Script | Rolle | Status | diff --git a/infrastructure/terraform/outputs.tf b/infrastructure/terraform/outputs.tf index 3363278..5e3f5ff 100644 --- a/infrastructure/terraform/outputs.tf +++ b/infrastructure/terraform/outputs.tf @@ -1,14 +1,14 @@ -output "medioteq_cloud_run_service_url" { - description = "The URL of the Medioteq Cloud Run service." - value = module.medioteq.cloud_run_service_url +output "medioteq_project_id" { + description = "Medioteq GCP project ID" + value = module.medioteq.project_id +} + +output "medioteq_cloud_run_url" { + description = "Medioteq Cloud Run service URL" + value = module.medioteq.cloud_run_url } output "medioteq_service_account_email" { - description = "The email of the Medioteq service account." + description = "Medioteq Cloud Run service account" value = module.medioteq.service_account_email } - -output "medioteq_artifact_registry_url" { - description = "The URL of the Medioteq Artifact Registry repository." - value = module.medioteq.artifact_registry_url -}