Skip to content

Commit 659a244

Browse files
authored
Merge branch 'main' into PRMP-1499
2 parents e0916ea + 2c10aa6 commit 659a244

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

infrastructure/policies.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@ resource "aws_iam_policy" "read_only_role_extra_permissions" {
3232
Resource = [
3333
"arn:aws:kms:eu-west-2:${data.aws_caller_identity.current.account_id}:key/*",
3434
]
35+
},
36+
{
37+
Effect = "Allow",
38+
Action = [
39+
"logs:PutQueryDefinition",
40+
"logs:DeleteQueryDefinition",
41+
],
42+
Resource = [
43+
"arn:aws:logs:eu-west-2:${data.aws_caller_identity.current.account_id}:log-group::log-stream:",
44+
]
3545
}
3646
]
3747
})

infrastructure/virusscanner.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ resource "aws_sns_topic_subscription" "proactive_virus_scanning_notifications" {
100100
topic_arn = module.cloud_storage_security[0].proactive_notifications_topic_arn
101101
filter_policy = jsonencode({
102102
"notificationType" : ["scanResult"],
103-
"scanResult" : ["Infected", "Error", "Unscannable", "Suspicious"]
103+
"scanResult" : ["Infected", "Error", "Unscannable", "Suspicious", "InfectedAllowed"]
104104
})
105105
}
106106

@@ -112,7 +112,7 @@ resource "aws_sns_topic_subscription" "proactive_virus_scanning_kill_switch" {
112112

113113
filter_policy = jsonencode({
114114
"notificationType" : ["scanResult"],
115-
"scanResult" : ["Infected", "Error", "Unscannable", "Suspicious"]
115+
"scanResult" : ["Infected", "Suspicious"]
116116
})
117117
}
118118

@@ -123,4 +123,4 @@ resource "aws_lambda_permission" "allow_sns_invoke_transfer_family_kill_switch"
123123
function_name = module.transfer_family_kill_switch_lambda.lambda_arn
124124
principal = "sns.amazonaws.com"
125125
source_arn = module.cloud_storage_security[0].proactive_notifications_topic_arn
126-
}
126+
}

0 commit comments

Comments
 (0)