Skip to content

Commit 241344e

Browse files
SSPROD-56045 - fix gcp api setup
1 parent f2a0278 commit 241344e

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

test/examples/project_api_enablement/cdr_ciem/main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ This terraform file is intended to enable the GCP APIs needed for CDR/CIEM featu
33
It will create a google_project_service resource per each service enabled within the GCP project.
44
The APIs needed for the CDR/CIEM feature are listed below:
55
- Cloud Pub/Sub API
6+
- Cloud Logging API
67
78
* Note: This do not overwrite any other APIs config that your GCP project has, it will only enabled it if isn't yet.
89
*/
@@ -11,7 +12,8 @@ The APIs needed for the CDR/CIEM feature are listed below:
1112
locals {
1213
project = "<MANAGEMENT_PROJECT_ID>"
1314
services = [
14-
"pubsub.googleapis.com"
15+
"pubsub.googleapis.com",
16+
"logging.googleapis.com"
1517
]
1618
}
1719

test/examples/project_api_enablement/cspm/main.tf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
This terraform file is intended to enable the GCP APIs needed for CSPM feature within a single project onboarding.
33
It will create a google_project_service resource per each service enabled within the GCP project.
44
The APIs needed for the CSPM feature are listed below:
5-
- Security Token Service API
65
- Cloud Asset API
7-
- Cloud Identity API
86
- Admin SDK API
97
In addition, since CSPM is needed for onboard any GCP project these other APIs are also enabled:
108
- Identity and access management API
@@ -19,9 +17,7 @@ locals {
1917
project = "<MANAGEMENT_PROJECT_ID>"
2018
services = [
2119
# CSPM specific APIs
22-
"sts.googleapis.com",
2320
"cloudasset.googleapis.com",
24-
"cloudidentity.googleapis.com",
2521
"admin.googleapis.com",
2622

2723
# additional APIs

0 commit comments

Comments
 (0)