Skip to content

Commit 056ef37

Browse files
[PRMP-557] add count to subscription resource
1 parent 23ce6cc commit 056ef37

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

infrastructure/virusscanner.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ resource "aws_sns_topic_subscription" "proactive_virus_scanning_notifications" {
105105
}
106106

107107
resource "aws_sns_topic_subscription" "virus_scanner_im_alerting" {
108+
count = local.is_production ? 1 : 0
108109
protocol = "lambda"
109110
endpoint = module.im-alerting-lambda.lambda_arn
110111
topic_arn = module.cloud_storage_security[0].proactive_notifications_topic_arn

0 commit comments

Comments
 (0)