Skip to content

Commit fcf8a36

Browse files
chore: add back object_id in azurerm role assignment
1 parent 778d6f9 commit fcf8a36

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

main.tf

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ resource "azurerm_role_assignment" "storage_sidekick" {
413413
resource "azurerm_role_assignment" "storage_data_loader" {
414414
count = var.global ? 1 : 0
415415

416-
principal_id = azuread_service_principal.data_loader[0].id
416+
principal_id = azuread_service_principal.data_loader[0].object_id
417417
role_definition_name = "Storage Blob Data Reader"
418418
scope = local.storage_account_id
419419
}
@@ -642,9 +642,4 @@ resource "terraform_data" "job_execution_now" {
642642
data "lacework_metric_module" "lwmetrics" {
643643
name = local.module_name
644644
version = local.module_version
645-
}
646-
647-
output "lacework_integration_guid" {
648-
value = lacework_integration_azure_agentless_scanning.lacework_cloud_account[0].intg_guid
649-
description = "GUID of the created Lacework integration"
650645
}

output.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,9 @@ output "excluded_subscriptions" {
107107
output "scanning_subscription_id" {
108108
value = data.azurerm_subscription.current.subscription_id
109109
description = "The subscription ID where scanning resources are deployed"
110+
}
111+
112+
output "lacework_integration_guid" {
113+
value = length(lacework_integration_azure_agentless_scanning.lacework_cloud_account) > 0 ? lacework_integration_azure_agentless_scanning.lacework_cloud_account[0].intg_guid : null
114+
description = "GUID of the created Lacework integration"
110115
}

0 commit comments

Comments
 (0)