Skip to content

Commit c123a12

Browse files
SSPROD-54180 logless ciem test updates (#71)
* SSPROD-54180 azure logless ciem test updates * SSPROD-54180 ignore basic ciem flag changes * SSPROD-54180 ignore basic ciem flag and component changes
1 parent 5008cf2 commit c123a12

File tree

4 files changed

+56
-0
lines changed

4 files changed

+56
-0
lines changed

test/examples/modular_organization/event_hub.tf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,16 @@ resource "sysdig_secure_cloud_auth_account_feature" "threat_detection" {
1919
components = [module.event-hub.event_hub_component_id]
2020
depends_on = [ module.event-hub ]
2121
}
22+
23+
resource "sysdig_secure_cloud_auth_account_feature" "identity_entitlement_advanced" {
24+
account_id = module.onboarding.sysdig_secure_account_id
25+
type = "FEATURE_SECURE_IDENTITY_ENTITLEMENT"
26+
enabled = true
27+
components = concat(sysdig_secure_cloud_auth_account_feature.identity_entitlement_basic.components, [module.event-hub.event_hub_component_id])
28+
depends_on = [module.event-hub, sysdig_secure_cloud_auth_account_feature.identity_entitlement_basic]
29+
flags = {"CIEM_FEATURE_MODE": "advanced"}
30+
31+
lifecycle {
32+
ignore_changes = [flags, components]
33+
}
34+
}

test/examples/modular_organization/onboarding_with_posture.tf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,18 @@ resource "sysdig_secure_cloud_auth_account_feature" "config_posture" {
4545
components = [module.config-posture.service_principal_component_id]
4646
depends_on = [ module.config-posture ]
4747
}
48+
49+
resource "sysdig_secure_cloud_auth_account_feature" "identity_entitlement_basic" {
50+
account_id = module.onboarding.sysdig_secure_account_id
51+
type = "FEATURE_SECURE_IDENTITY_ENTITLEMENT"
52+
enabled = true
53+
components = [module.config-posture.service_principal_component_id]
54+
depends_on = [module.config-posture, sysdig_secure_cloud_auth_account_feature.config_posture]
55+
flags = {
56+
"CIEM_FEATURE_MODE": "basic"
57+
}
58+
59+
lifecycle {
60+
ignore_changes = [flags, components]
61+
}
62+
}

test/examples/modular_single_subscription/event_hub.tf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,16 @@ resource "sysdig_secure_cloud_auth_account_feature" "threat_detection" {
1717
components = [module.event-hub.event_hub_component_id]
1818
depends_on = [ module.event-hub ]
1919
}
20+
21+
resource "sysdig_secure_cloud_auth_account_feature" "identity_entitlement_advanced" {
22+
account_id = module.onboarding.sysdig_secure_account_id
23+
type = "FEATURE_SECURE_IDENTITY_ENTITLEMENT"
24+
enabled = true
25+
components = concat(sysdig_secure_cloud_auth_account_feature.identity_entitlement_basic.components, [module.event-hub.event_hub_component_id])
26+
depends_on = [module.event-hub, sysdig_secure_cloud_auth_account_feature.identity_entitlement_basic]
27+
flags = {"CIEM_FEATURE_MODE": "advanced"}
28+
29+
lifecycle {
30+
ignore_changes = [flags, components]
31+
}
32+
}

test/examples/modular_single_subscription/onboarding_with_posture.tf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,18 @@ resource "sysdig_secure_cloud_auth_account_feature" "config_posture" {
4141
components = [module.config-posture.service_principal_component_id]
4242
depends_on = [ module.config-posture ]
4343
}
44+
45+
resource "sysdig_secure_cloud_auth_account_feature" "identity_entitlement_basic" {
46+
account_id = module.onboarding.sysdig_secure_account_id
47+
type = "FEATURE_SECURE_IDENTITY_ENTITLEMENT"
48+
enabled = true
49+
components = [module.config-posture.service_principal_component_id]
50+
depends_on = [module.config-posture, sysdig_secure_cloud_auth_account_feature.config_posture]
51+
flags = {
52+
"CIEM_FEATURE_MODE": "basic"
53+
}
54+
55+
lifecycle {
56+
ignore_changes = [flags, components]
57+
}
58+
}

0 commit comments

Comments
 (0)