-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlambda-report-distribution.tf
More file actions
30 lines (25 loc) · 1.23 KB
/
lambda-report-distribution.tf
File metadata and controls
30 lines (25 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
module "report-distribution-lambda" {
source = "./modules/lambda"
name = "ReportDistribution"
handler = "handlers.report_distribution_handler.lambda_handler"
lambda_timeout = 300
iam_role_policy_documents = [
module.ndr-report-store.s3_read_policy_document,
module.bulk_upload_contact_lookup_table.dynamodb_read_policy_document,
data.aws_iam_policy_document.reporting_ses.json,
data.aws_iam_policy.aws_lambda_vpc_access_execution_role.policy,
]
lambda_environment_variables = {
APPCONFIG_APPLICATION = module.ndr-app-config.app_config_application_id
APPCONFIG_ENVIRONMENT = module.ndr-app-config.app_config_environment_id
APPCONFIG_CONFIGURATION = module.ndr-app-config.app_config_configuration_profile_id
WORKSPACE = terraform.workspace
REPORT_BUCKET_NAME = module.ndr-report-store.bucket_id
CONTACT_TABLE_NAME = module.bulk_upload_contact_lookup_table.table_name
PRM_MAILBOX_EMAIL = data.aws_ssm_parameter.prm_mailbox_email.value
SES_FROM_ADDRESS = module.ses.report_email_address
SES_CONFIGURATION_SET = aws_ses_configuration_set.reporting.name
}
is_gateway_integration_needed = false
is_invoked_from_gateway = false
}