From e9266afeb565f894ab8f436302d31a2d8ec33f92 Mon Sep 17 00:00:00 2001 From: Ravina Dhruve Date: Fri, 25 Jul 2025 13:03:29 -0700 Subject: [PATCH] Add Cloud Monitoring API Enablement for pubsub install setup --- modules/integrations/pub-sub/README.md | 2 ++ test/examples/project_api_enablement/cdr_ciem/main.tf | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/integrations/pub-sub/README.md b/modules/integrations/pub-sub/README.md index 27d53a6..8b0e012 100644 --- a/modules/integrations/pub-sub/README.md +++ b/modules/integrations/pub-sub/README.md @@ -5,6 +5,8 @@ Before applying the changes defined in this module, the following operations nee - The APIs needed for the CDR/CIEM feature are listed below: - Cloud Pub/Sub API + - Cloud Logging API + - Cloud Monitoring API - The following resources will be created in each instrumented project: - A `PubSub Topic` to send the AuditLogs from the project diff --git a/test/examples/project_api_enablement/cdr_ciem/main.tf b/test/examples/project_api_enablement/cdr_ciem/main.tf index 9fa0d9b..64c06d1 100644 --- a/test/examples/project_api_enablement/cdr_ciem/main.tf +++ b/test/examples/project_api_enablement/cdr_ciem/main.tf @@ -4,6 +4,7 @@ It will create a google_project_service resource per each service enabled within The APIs needed for the CDR/CIEM feature are listed below: - Cloud Pub/Sub API - Cloud Logging API + - Cloud Monitoring API * Note: This do not overwrite any other APIs config that your GCP project has, it will only enabled it if isn't yet. */ @@ -13,7 +14,8 @@ locals { project = "" services = [ "pubsub.googleapis.com", - "logging.googleapis.com" + "logging.googleapis.com", + "monitoring.googleapis.com" ] }