You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`projects`| The ID of each project, which will be used to deploy required resources for the integration |`map`|
9
+
10
+
11
+
```hcl
12
+
provider "google" {
13
+
project = keys(var.projects)[0]
14
+
}
15
+
16
+
provider "lacework" {}
17
+
18
+
variable "projects" {
19
+
description = "Map of project configuration with Lacework."
20
+
type = map
21
+
default = {
22
+
project-id-1 = "first project",
23
+
project-id-2 = "second project"
24
+
}
25
+
}
26
+
27
+
module "gcp_project_config" {
28
+
source = "lacework/config/gcp"
29
+
version = "~> 2.0"
30
+
31
+
for_each = var.projects
32
+
project_id = each.key
33
+
}
34
+
```
35
+
36
+
Run Terraform:
37
+
```
38
+
$ terraform init
39
+
$ GOOGLE_CREDENTIALS=account.json terraform apply
40
+
```
41
+
42
+
For detailed information on integrating Lacework with Google Cloud see [GCP Compliance and Audit Trail Integration - Configure Multiple Porjects with Terraform](https://docs.lacework.com/onboarding/gcp-compliance-and-audit-log-integration-terraform-using-google-cloud-shell#configure-multiple-projects-with-terraform)
0 commit comments