Skip to content

Commit 9aad074

Browse files
Add Cloud Monitoring API Enablement for pubsub install setup (#73)
1 parent 9e808b4 commit 9aad074

File tree

2 files changed

+5
-1
lines changed
  • modules/integrations/pub-sub
  • test/examples/project_api_enablement/cdr_ciem

2 files changed

+5
-1
lines changed

modules/integrations/pub-sub/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Before applying the changes defined in this module, the following operations nee
55

66
- The APIs needed for the CDR/CIEM feature are listed below:
77
- Cloud Pub/Sub API
8+
- Cloud Logging API
9+
- Cloud Monitoring API
810

911
- The following resources will be created in each instrumented project:
1012
- A `PubSub Topic` to send the AuditLogs from the project

test/examples/project_api_enablement/cdr_ciem/main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ It will create a google_project_service resource per each service enabled within
44
The APIs needed for the CDR/CIEM feature are listed below:
55
- Cloud Pub/Sub API
66
- Cloud Logging API
7+
- Cloud Monitoring API
78
89
* Note: This do not overwrite any other APIs config that your GCP project has, it will only enabled it if isn't yet.
910
*/
@@ -13,7 +14,8 @@ locals {
1314
project = "<MANAGEMENT_PROJECT_ID>"
1415
services = [
1516
"pubsub.googleapis.com",
16-
"logging.googleapis.com"
17+
"logging.googleapis.com",
18+
"monitoring.googleapis.com"
1719
]
1820
}
1921

0 commit comments

Comments
 (0)