Skip to content

Commit 55e7637

Browse files
authored
add description to Service Principal resources so that customers can identify origin (#51)
1 parent 336a3f6 commit 55e7637

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed

modules/config-posture/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ locals {
3030
resource "azuread_service_principal" "sysdig_cspm_sp" {
3131
client_id = data.sysdig_secure_trusted_azure_app.config_posture.application_id
3232
use_existing = true
33+
notes = "Service Principal linked to the Sysdig Secure CNAPP - CSPM module"
3334
}
3435

3536
#---------------------------------------------------------------------------------------------

modules/integrations/event-hub/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ resource "random_string" "random" {
4040
resource "azuread_service_principal" "sysdig_event_hub_sp" {
4141
client_id = data.sysdig_secure_trusted_azure_app.threat_detection.application_id
4242
use_existing = true
43+
notes = "Service Principal linked to the Sysdig Secure CNAPP - CDR module"
4344
}
4445

4546
#---------------------------------------------------------------------------------------------

modules/onboarding/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ data "sysdig_secure_trusted_azure_app" "onboarding" {
2424
resource "azuread_service_principal" "sysdig_onboarding_sp" {
2525
client_id = data.sysdig_secure_trusted_azure_app.onboarding.application_id
2626
use_existing = true
27+
notes = "Service Principal linked to the Sysdig Secure CNAPP - Onboarding module"
2728
}
2829

2930
#-------------------------------------------------------------------------------------------------

modules/services/event-hub-data-source/main.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ locals {
1010
subscription_hash = substr(md5(data.azurerm_client_config.current.subscription_id), 0, 8)
1111
}
1212

13-
# A random resource is used to generate unique Event Hub names.
14-
# This prevents conflicts when recreating an Event Hub Namespace with the same name.
15-
# Azure caches the Event Hub name after deletion.
13+
# A random resource is used to generate unique Event Hub names.
14+
# This prevents conflicts when recreating an Event Hub Namespace with the same name.
15+
# Azure caches the Event Hub name after deletion.
1616
# If the namespace is recreated, Azure restores the existing Event Hub, causing a Terraform apply failure.
1717
resource "random_string" "random" {
1818
length = 4
@@ -30,6 +30,7 @@ resource "azuread_service_principal" "sysdig_service_principal" {
3030
lifecycle {
3131
prevent_destroy = true
3232
}
33+
notes = "Service Principal linked to the Sysdig Secure CNAPP"
3334
}
3435

3536
#---------------------------------------------------------------------------------------------

modules/services/service-principal/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ resource "azuread_service_principal" "sysdig_sp" {
3131
lifecycle {
3232
prevent_destroy = true
3333
}
34+
notes = "Service Principal linked to the Sysdig Secure CNAPP"
3435
}
3536

3637
#---------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)