Skip to content

Commit 6e4e34e

Browse files
[PRMP-939] Report of anything left in staging (#608)
Co-authored-by: Robert Gaskin <106234256+robg-test@users.noreply.github.com>
1 parent 5674a68 commit 6e4e34e

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
module "report-s3-content-lambda" {
2+
source = "./modules/lambda"
3+
name = "ReportS3Content"
4+
handler = "handlers.report_s3_content_handler.lambda_handler"
5+
lambda_timeout = 900
6+
memory_size = 10240 #max memory size
7+
8+
iam_role_policy_documents = [
9+
module.ndr-bulk-staging-store.s3_read_policy_document,
10+
module.statistical-reports-store.s3_read_policy_document,
11+
module.statistical-reports-store.s3_write_policy_document,
12+
module.ndr-app-config.app_config_policy,
13+
]
14+
15+
lambda_environment_variables = {
16+
APPCONFIG_APPLICATION = module.ndr-app-config.app_config_application_id
17+
APPCONFIG_ENVIRONMENT = module.ndr-app-config.app_config_environment_id
18+
APPCONFIG_CONFIGURATION = module.ndr-app-config.app_config_configuration_profile_id
19+
WORKSPACE = terraform.workspace
20+
STATISTICAL_REPORTS_BUCKET = "${terraform.workspace}-${var.statistical_reports_bucket_name}"
21+
BULK_STAGING_BUCKET_NAME = "${terraform.workspace}-${var.staging_store_bucket_name}"
22+
}
23+
24+
is_gateway_integration_needed = false
25+
is_invoked_from_gateway = false
26+
}
27+

0 commit comments

Comments
 (0)