From d5217ae52d4ae6fd11d6732db0d2da8a8b355bad Mon Sep 17 00:00:00 2001 From: Lei Jin Date: Mon, 3 Jun 2024 22:25:54 +0000 Subject: [PATCH] feat(GROW-2928): Add an output to capture Lacework integration GUID Signed-off-by: Lei Jin --- README.md | 1 + output.tf | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index a5c8d74..7d3aa9f 100644 --- a/README.md +++ b/README.md @@ -112,6 +112,7 @@ A Terraform Module to configure the Lacework Agentless Scanner. | [bucket\_name](#output\_bucket\_name) | The storage bucket name for Agentless Workload Scanning data. | | [lacework\_account](#output\_lacework\_account) | Lacework Account Name for Integration. | | [lacework\_domain](#output\_lacework\_domain) | Lacework Domain Name for Integration. | +| [lacework\_integration\_guid](#output\_lacework\_integration\_guid) | GUID of the created Lacework integration | | [prefix](#output\_prefix) | Prefix used to add uniqueness to resource names. | | [project\_filter\_list](#output\_project\_filter\_list) | The list of projects to scan in this module. | | [service\_account\_name](#output\_service\_account\_name) | The service account name for Lacework. | diff --git a/output.tf b/output.tf index da70ea2..edd0117 100644 --- a/output.tf +++ b/output.tf @@ -52,4 +52,9 @@ output "suffix" { output "project_filter_list" { value = local.final_project_filter_list description = "The list of projects to scan in this module." +} + +output "lacework_integration_guid" { + value = var.global ? lacework_integration_gcp_agentless_scanning.lacework_cloud_account[0].intg_guid : null + description = "GUID of the created Lacework integration" } \ No newline at end of file