Skip to content

Commit

Permalink
feat(GROW-2876): add output for lacework integration id (#139)
Browse files Browse the repository at this point in the history
* feat(GROW-2876): add output for lacework integration id

* chore: update output description

* chore: fix readme
  • Loading branch information
Matt Cadorette authored Apr 9, 2024
1 parent b15dfa3 commit e08665a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ No modules.
| <a name="output_external_id"></a> [external\_id](#output\_external\_id) | External ID used for assuming snapshot creation and cross-account roles. |
| <a name="output_lacework_account"></a> [lacework\_account](#output\_lacework\_account) | Lacework Account Name for Integration. |
| <a name="output_lacework_domain"></a> [lacework\_domain](#output\_lacework\_domain) | Lacework Domain Name for Integration. |
| <a name="output_lacework_integration_guid"></a> [lacework\_integration\_guid](#output\_lacework\_integration\_guid) | The GUID for the created Lacework integration. This GUID is useful for interacting with this integration from the CLI or API. |
| <a name="output_prefix"></a> [prefix](#output\_prefix) | Prefix used to add uniqueness to resource names. |
| <a name="output_suffix"></a> [suffix](#output\_suffix) | Suffix used to add uniqueness to resource names. |
<!-- END_TF_DOCS -->
9 changes: 9 additions & 0 deletions output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,12 @@ output "external_id" {
value = local.external_id
description = "External ID used for assuming snapshot creation and cross-account roles."
}

output "lacework_integration_guid" {
description = "The GUID for the created Lacework integration. This GUID is useful for interacting with this integration from the CLI or API."
value = (local.is_org_integration ?
(length(lacework_integration_aws_org_agentless_scanning.lacework_cloud_account) > 0 ?
lacework_integration_aws_org_agentless_scanning.lacework_cloud_account[0].intg_guid : null) :
(length(lacework_integration_aws_agentless_scanning.lacework_cloud_account) > 0 ?
lacework_integration_aws_agentless_scanning.lacework_cloud_account[0].intg_guid : null))
}

0 comments on commit e08665a

Please sign in to comment.