Skip to content

Commit df8d958

Browse files
committed
Revert "[PRMP-1057] Creation of Report Distribution Lambda (#553)"
This reverts commit b6b2d5e.
1 parent b6b2d5e commit df8d958

File tree

9 files changed

+7
-259
lines changed

9 files changed

+7
-259
lines changed

infrastructure/buckets.tf

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -472,16 +472,3 @@ module "pdm-document-store" {
472472
owner = var.owner
473473
force_destroy = local.is_force_destroy
474474
}
475-
476-
module "report-orchestration-store" {
477-
source = "./modules/s3/"
478-
access_logs_enabled = local.is_production
479-
access_logs_bucket_id = local.access_logs_bucket_id
480-
bucket_name = "report-orchestration"
481-
enable_cors_configuration = false
482-
enable_bucket_versioning = true
483-
environment = var.environment
484-
owner = var.owner
485-
force_destroy = local.is_force_destroy
486-
}
487-

infrastructure/dns_email_auth.tf

Lines changed: 0 additions & 9 deletions
This file was deleted.

infrastructure/iam.tf

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -356,23 +356,3 @@ resource "aws_iam_policy" "s3_document_data_policy_post_document_review_lambda"
356356
]
357357
})
358358
}
359-
360-
data "aws_iam_policy_document" "reporting_ses" {
361-
statement {
362-
sid = "SESAccess"
363-
effect = "Allow"
364-
365-
actions = [
366-
"ses:SendEmail",
367-
"ses:SendRawEmail"
368-
]
369-
370-
resources = ["*"]
371-
372-
condition {
373-
test = "StringEquals"
374-
variable = "ses:FromAddress"
375-
values = [aws_ssm_parameter.reporting_ses_from_address.value]
376-
}
377-
}
378-
}

infrastructure/lambda-report-distribution.tf

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
module "report-orchestration-lambda" {
22
source = "./modules/lambda"
3-
name = "ReportOrchestration"
3+
name = "reportOrchestration"
44
handler = "handlers.report_orchestration_handler.lambda_handler"
55
lambda_timeout = 900
66
memory_size = 1769
77

88
iam_role_policy_documents = [
99
module.bulk_upload_report_dynamodb_table.dynamodb_read_policy_document,
1010
module.bulk_upload_report_dynamodb_table.dynamodb_write_policy_document,
11-
module.report-orchestration-store.s3_write_policy_document,
1211
data.aws_iam_policy.aws_lambda_vpc_access_execution_role.policy,
1312
]
1413

@@ -18,9 +17,12 @@ module "report-orchestration-lambda" {
1817
APPCONFIG_CONFIGURATION = module.ndr-app-config.app_config_configuration_profile_id
1918
WORKSPACE = terraform.workspace
2019
BULK_UPLOAD_REPORT_TABLE_NAME = "${terraform.workspace}_BulkUploadReport"
21-
REPORT_BUCKET_NAME = module.report-orchestration-store.bucket_id
2220
}
2321

2422
is_gateway_integration_needed = false
2523
is_invoked_from_gateway = false
26-
}
24+
25+
depends_on = [
26+
module.bulk_upload_report_dynamodb_table
27+
]
28+
}

infrastructure/modules/ssm_parameter/main.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ resource "aws_ssm_parameter" "secret_ignore_value_changes" {
2222
key_id = var.key_id
2323
depends_on = [var.resource_depends_on]
2424
tags = {
25-
Name = "/ndr/${terraform.workspace}/${var.name}"
26-
Type = "terraform.workspace}-ssm_parameter"
25+
Name = "${terraform.workspace}-ssm"
2726
}
2827

2928
lifecycle {

infrastructure/ses_reporting.tf

Lines changed: 0 additions & 69 deletions
This file was deleted.

infrastructure/ssm_reporting.tf

Lines changed: 0 additions & 9 deletions
This file was deleted.

infrastructure/step-function-reporting.tf

Lines changed: 0 additions & 103 deletions
This file was deleted.

0 commit comments

Comments
 (0)