Skip to content

Commit 4d60c2d

Browse files
feat(modular): address feedback for modular support for cdr/ciem, rebase and cleanup
1 parent 72aafe0 commit 4d60c2d

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

modules/integrations/pub-sub/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
output "webhook_datasource_component_id" {
1+
output "pubsub_datasource_component_id" {
22
value = "${sysdig_secure_cloud_auth_account_component.gcp_webhook_datasource.type}/${sysdig_secure_cloud_auth_account_component.gcp_webhook_datasource.instance}"
33
description = "Component identifier of Webhook Datasource integration created in Sysdig Backend for Log Ingestion"
44
depends_on = [sysdig_secure_cloud_auth_account_component.gcp_webhook_datasource]

test/examples/modular_organization/pub-sub.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# installing additional Sysdig features.
44
#---------------------------------------------------------------------------------------------
55

6-
module "webhook-datasource" {
6+
module "pub-sub" {
77
source = "../../../modules/integrations/pub-sub"
88
project_id = module.onboarding.project_id
99
is_organizational = module.onboarding.is_organizational
@@ -15,14 +15,14 @@ resource "sysdig_secure_cloud_auth_account_feature" "threat_detection" {
1515
account_id = module.onboarding.sysdig_secure_account_id
1616
type = "FEATURE_SECURE_THREAT_DETECTION"
1717
enabled = true
18-
components = [ module.webhook-datasource.webhook_datasource_component_id ]
19-
depends_on = [ module.webhook-datasource ]
18+
components = [ module.pub-sub.pubsub_datasource_component_id ]
19+
depends_on = [ module.pub-sub ]
2020
}
2121

2222
resource "sysdig_secure_cloud_auth_account_feature" "identity_entitlement" {
2323
account_id = module.onboarding.sysdig_secure_account_id
2424
type = "FEATURE_SECURE_IDENTITY_ENTITLEMENT"
2525
enabled = true
26-
components = [module.webhook-datasource.webhook_datasource_component_id]
26+
components = [module.pub-sub.pubsub_datasource_component_id]
2727
depends_on = [sysdig_secure_cloud_auth_account_feature.config_posture, sysdig_secure_cloud_auth_account_feature.threat_detection]
2828
}

test/examples/modular_single_project/pub-sub.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# installing additional Sysdig features.
44
#---------------------------------------------------------------------------------------------
55

6-
module "webhook-datasource" {
6+
module "pub-sub" {
77
source = "../../../modules/integrations/pub-sub"
88
project_id = module.onboarding.project_id
99
sysdig_secure_account_id = module.onboarding.sysdig_secure_account_id
@@ -13,14 +13,14 @@ resource "sysdig_secure_cloud_auth_account_feature" "threat_detection" {
1313
account_id = module.onboarding.sysdig_secure_account_id
1414
type = "FEATURE_SECURE_THREAT_DETECTION"
1515
enabled = true
16-
components = [ module.webhook-datasource.webhook_datasource_component_id ]
17-
depends_on = [ module.webhook-datasource ]
16+
components = [ module.pub-sub.pubsub_datasource_component_id ]
17+
depends_on = [ module.pub-sub ]
1818
}
1919

2020
resource "sysdig_secure_cloud_auth_account_feature" "identity_entitlement" {
2121
account_id = module.onboarding.sysdig_secure_account_id
2222
type = "FEATURE_SECURE_IDENTITY_ENTITLEMENT"
2323
enabled = true
24-
components = [module.webhook-datasource.webhook_datasource_component_id]
24+
components = [module.pub-sub.pubsub_datasource_component_id]
2525
depends_on = [sysdig_secure_cloud_auth_account_feature.config_posture, sysdig_secure_cloud_auth_account_feature.threat_detection]
2626
}

0 commit comments

Comments
 (0)