File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed
Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change 11module "transfer_kill_switch_lambda" {
2- count = 1
32 source = " ./modules/lambda"
43 name = " TransferKillSwitch"
54 handler = " handlers.transfer_kill_switch_handler.lambda_handler"
@@ -11,11 +10,6 @@ module "transfer_kill_switch_lambda" {
1110
1211 kms_deletion_window = var. kms_deletion_window
1312
14- rest_api_id = null
15- resource_id = null
16- http_methods = []
17- api_execution_arn = null
18-
1913 lambda_environment_variables = {
2014 WORKSPACE = terraform.workspace
2115 STAGING_STORE_BUCKET_NAME = " ${ terraform . workspace } -${ var . staging_store_bucket_name } "
@@ -24,9 +18,6 @@ module "transfer_kill_switch_lambda" {
2418 is_gateway_integration_needed = false
2519 is_invoked_from_gateway = false
2620
27- lambda_timeout = 60
28- memory_size = 128
29- reserved_concurrent_executions = - 1
3021
3122 vpc_subnet_ids = length (data. aws_security_groups . virus_scanner_api . ids ) == 1 ? module. ndr-vpc-ui . private_subnets : []
3223 vpc_security_group_ids = length (data. aws_security_groups . virus_scanner_api . ids ) == 1 ? [data . aws_security_groups . virus_scanner_api . ids [0 ]] : []
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ resource "aws_sns_topic_subscription" "proactive_virus_scanning_kill_switch" {
108108 count = local. is_production ? 1 : 0
109109 topic_arn = module. cloud_storage_security [0 ]. proactive_notifications_topic_arn
110110 protocol = " lambda"
111- endpoint = module. transfer_kill_switch_lambda [ 0 ] . lambda_arn
111+ endpoint = module. transfer_kill_switch_lambda . lambda_arn
112112
113113 filter_policy = jsonencode ({
114114 " notificationType" : [" scanResult" ],
@@ -120,7 +120,7 @@ resource "aws_lambda_permission" "allow_sns_invoke_transfer_kill_switch" {
120120 count = local. is_production ? 1 : 0
121121 statement_id = " AllowExecutionFromVirusScanSNS"
122122 action = " lambda:InvokeFunction"
123- function_name = module. transfer_kill_switch_lambda [ 0 ] . lambda_arn
123+ function_name = module. transfer_kill_switch_lambda . lambda_arn
124124 principal = " sns.amazonaws.com"
125125 source_arn = module. cloud_storage_security [0 ]. proactive_notifications_topic_arn
126126}
You can’t perform that action at this time.
0 commit comments