From 8574354abb0cd31640cb4981d0ecf6d9559c3cc2 Mon Sep 17 00:00:00 2001 From: Ravina Dhruve <136399755+ravinadhruve10@users.noreply.github.com> Date: Tue, 27 Aug 2024 13:28:57 -0700 Subject: [PATCH] Remove component dependency of cspm role in CIEM (#12) Fix summary: ------------- 1. Removing the component dependency of cspm's trusted role in ciem. 2. Keeping the feature dependency of CSPM in CIEM feature. This is because while CSPM feature will always be installed during foundational onboarding, while offboarding we need to ensure CIEM depends on the CSPM feature to offboard / be deleted. --- test/examples/organization/agentless_scanning.tf | 2 +- test/examples/organization/event_bridge.tf | 6 +++--- test/examples/single_account/agentless_scanning.tf | 2 +- test/examples/single_account/event_bridge.tf | 8 ++++---- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/test/examples/organization/agentless_scanning.tf b/test/examples/organization/agentless_scanning.tf index 6e9e165..ae690d8 100644 --- a/test/examples/organization/agentless_scanning.tf +++ b/test/examples/organization/agentless_scanning.tf @@ -16,5 +16,5 @@ resource "sysdig_secure_cloud_auth_account_feature" "agentless_scanning" { type = "FEATURE_SECURE_AGENTLESS_SCANNING" enabled = true components = [module.agentless-scanning.scanning_role_component_id, module.agentless-scanning.crypto_key_component_id] - depends_on = [ module.agentless-scanning ] + depends_on = [module.agentless-scanning] } \ No newline at end of file diff --git a/test/examples/organization/event_bridge.tf b/test/examples/organization/event_bridge.tf index 4e7f46e..bea0dd4 100644 --- a/test/examples/organization/event_bridge.tf +++ b/test/examples/organization/event_bridge.tf @@ -16,13 +16,13 @@ resource "sysdig_secure_cloud_auth_account_feature" "threat_detection" { type = "FEATURE_SECURE_THREAT_DETECTION" enabled = true components = [module.event-bridge.event_bridge_component_id] - depends_on = [ module.event-bridge ] + depends_on = [module.event-bridge] } resource "sysdig_secure_cloud_auth_account_feature" "identity_entitlement" { account_id = module.onboarding.sysdig_secure_account_id type = "FEATURE_SECURE_IDENTITY_ENTITLEMENT" enabled = true - components = [module.config-posture.config_posture_component_id, module.event-bridge.event_bridge_component_id] - depends_on = [sysdig_secure_cloud_auth_account_feature.config_posture, sysdig_secure_cloud_auth_account_feature.threat_detection] + components = [module.event-bridge.event_bridge_component_id] + depends_on = [module.event-bridge, sysdig_secure_cloud_auth_account_feature.config_posture] } \ No newline at end of file diff --git a/test/examples/single_account/agentless_scanning.tf b/test/examples/single_account/agentless_scanning.tf index 0227e4f..8f96ed8 100644 --- a/test/examples/single_account/agentless_scanning.tf +++ b/test/examples/single_account/agentless_scanning.tf @@ -14,5 +14,5 @@ resource "sysdig_secure_cloud_auth_account_feature" "agentless_scanning" { type = "FEATURE_SECURE_AGENTLESS_SCANNING" enabled = true components = [module.agentless-scanning.scanning_role_component_id, module.agentless-scanning.crypto_key_component_id] - depends_on = [ module.agentless-scanning ] + depends_on = [module.agentless-scanning] } \ No newline at end of file diff --git a/test/examples/single_account/event_bridge.tf b/test/examples/single_account/event_bridge.tf index 2545a0d..91a0418 100644 --- a/test/examples/single_account/event_bridge.tf +++ b/test/examples/single_account/event_bridge.tf @@ -14,13 +14,13 @@ resource "sysdig_secure_cloud_auth_account_feature" "threat_detection" { type = "FEATURE_SECURE_THREAT_DETECTION" enabled = true components = [module.event-bridge.event_bridge_component_id] - depends_on = [ module.event-bridge ] + depends_on = [module.event-bridge] } resource "sysdig_secure_cloud_auth_account_feature" "identity_entitlement" { account_id = module.onboarding.sysdig_secure_account_id type = "FEATURE_SECURE_IDENTITY_ENTITLEMENT" enabled = true - components = [module.config-posture.config_posture_component_id, module.event-bridge.event_bridge_component_id] - depends_on = [sysdig_secure_cloud_auth_account_feature.config_posture, sysdig_secure_cloud_auth_account_feature.threat_detection] -} + components = [module.event-bridge.event_bridge_component_id] + depends_on = [module.event-bridge, sysdig_secure_cloud_auth_account_feature.config_posture] +} \ No newline at end of file