File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
examples/sftp-malware-protection-guardduty
modules/transfer-malware-protection Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ module "s3_bucket_errors" {
118118# ###################################
119119resource "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 })
Original file line number Diff line number Diff 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 = {
You can’t perform that action at this time.
0 commit comments