Skip to content

Commit

Permalink
fix: use right resource id in project-level intg (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ao Zhang authored May 18, 2024
1 parent bf89798 commit 92ae5fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ resource "lacework_integration_gcp_agentless_scanning" "lacework_cloud_account"

name = var.lacework_integration_name
resource_level = var.integration_type
resource_id = length(local.organization_id) > 0 ? local.organization_id : local.scanning_project_id
resource_id = var.integration_type == "ORGANIZATION" ? local.organization_id : local.scanning_project_id
bucket_name = google_storage_bucket.lacework_bucket[0].name
scanning_project_id = local.scanning_project_id
filter_list = local.final_project_filter_list
Expand Down

0 comments on commit 92ae5fe

Please sign in to comment.