Skip to content

Commit 996f7b1

Browse files
authored
Merge pull request #87 from aws-ia/malware-protection-fixes
Malware protection fixes
2 parents 071cfef + cc114e6 commit 996f7b1

File tree

2 files changed

+5
-2
lines changed
  • examples/sftp-malware-protection-guardduty
  • modules/transfer-malware-protection

2 files changed

+5
-2
lines changed

examples/sftp-malware-protection-guardduty/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ module "s3_bucket_errors" {
118118
####################################
119119
resource "aws_sns_topic" "malware_threats" {
120120
name = "${random_pet.name.id}-malware-sns-topic"
121-
kms_master_key_id = "alias/aws/sns"
121+
kms_master_key_id = module.sftp-public-endpoint-service-managed-S3-resources.kms_key_arn
122122
tags = merge(var.tags, {
123123
Purpose = "SFTP Malware Threat Notifications"
124124
})

modules/transfer-malware-protection/main.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ resource "aws_cloudwatch_event_rule" "guardduty_scan_results" {
131131
source = ["aws.guardduty"]
132132
detail-type = ["GuardDuty Malware Protection Object Scan Result"]
133133
detail = {
134+
s3ObjectDetails = {
135+
bucketName = [var.s3_ingest_bucket.bucket_name]
136+
}
134137
scanResultDetails = {
135138
scanResultStatus = keys(var.routing_config)
136139
}
@@ -253,7 +256,7 @@ resource "aws_lambda_function" "file_transfer_function" {
253256
runtime = "python3.12"
254257
source_code_hash = data.archive_file.lambda_zip.output_base64sha256
255258
timeout = 60
256-
reserved_concurrent_executions = 10
259+
reserved_concurrent_executions = -1
257260

258261
environment {
259262
variables = {

0 commit comments

Comments
 (0)