Skip to content

Commit 25997a4

Browse files
SSPROD-56045 - fix gcp api setup (#67)
* SSPROD-56045 - fix gcp api setup * SSPROD-56045 - fix gcp api setup * SSPROD-56045 - fix gcp api setup
1 parent 5e85d6a commit 25997a4

File tree

6 files changed

+6
-346
lines changed

6 files changed

+6
-346
lines changed

test/examples/organization_api_enablement/cdr_ciem/main.tf

Lines changed: 0 additions & 39 deletions
This file was deleted.

test/examples/organization_api_enablement/cspm/main.tf

Lines changed: 0 additions & 157 deletions
This file was deleted.

test/examples/organization_api_enablement/vm/main.tf

Lines changed: 0 additions & 142 deletions
This file was deleted.

test/examples/single_api_enablement/cdr_ciem/main.tf renamed to test/examples/project_api_enablement/cdr_ciem/main.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@ 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
*/
910

1011
# Set local local variables for Project ID and API services to enable
1112
locals {
12-
project = "org-child-project-1"
13+
project = "<MANAGEMENT_PROJECT_ID>"
1314
services = [
14-
"pubsub.googleapis.com"
15+
"pubsub.googleapis.com",
16+
"logging.googleapis.com"
1517
]
1618
}
1719

test/examples/single_api_enablement/cspm/main.tf renamed to test/examples/project_api_enablement/cspm/main.tf

Lines changed: 1 addition & 5 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
@@ -16,12 +14,10 @@ In addition, since CSPM is needed for onboard any GCP project these other APIs a
1614

1715
# Set local variables for Project ID and API services to enable
1816
locals {
19-
project = "org-child-project-1"
17+
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

test/examples/single_api_enablement/vm/main.tf renamed to test/examples/project_api_enablement/vm/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The APIs needed for the VM feature are listed below:
99

1010
# Set local variables for Project ID and API services to enable
1111
locals {
12-
project = "org-child-project-1"
12+
project = "<MANAGEMENT_PROJECT_ID>"
1313
services = [
1414
"compute.googleapis.com"
1515
]

0 commit comments

Comments
 (0)