Skip to content

Commit 479a194

Browse files
authored
[PRMT-69] Create metadata pre-processor lambda (#292)
1 parent f9f4c1e commit 479a194

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

infrastructure/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
| Name | Version |
1010
|------|---------|
11-
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.62.0 |
11+
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.86.1 |
1212

1313
## Modules
1414

@@ -38,6 +38,7 @@
3838
| <a name="module_bulk-upload-report-alarm"></a> [bulk-upload-report-alarm](#module\_bulk-upload-report-alarm) | ./modules/lambda_alarms | n/a |
3939
| <a name="module_bulk-upload-report-alarm-topic"></a> [bulk-upload-report-alarm-topic](#module\_bulk-upload-report-alarm-topic) | ./modules/sns | n/a |
4040
| <a name="module_bulk-upload-report-lambda"></a> [bulk-upload-report-lambda](#module\_bulk-upload-report-lambda) | ./modules/lambda | n/a |
41+
| <a name="module_bulk_upload_metadata_preprocessor_lambda"></a> [bulk\_upload\_metadata\_preprocessor\_lambda](#module\_bulk\_upload\_metadata\_preprocessor\_lambda) | ./modules/lambda | n/a |
4142
| <a name="module_bulk_upload_report_dynamodb_table"></a> [bulk\_upload\_report\_dynamodb\_table](#module\_bulk\_upload\_report\_dynamodb\_table) | ./modules/dynamo_db | n/a |
4243
| <a name="module_cloudfront-distribution-lg"></a> [cloudfront-distribution-lg](#module\_cloudfront-distribution-lg) | ./modules/cloudfront | n/a |
4344
| <a name="module_cloudfront_edge_dynamodb_table"></a> [cloudfront\_edge\_dynamodb\_table](#module\_cloudfront\_edge\_dynamodb\_table) | ./modules/dynamo_db | n/a |
@@ -268,6 +269,7 @@
268269
| [aws_iam_role_policy_attachment.data_collection_document_reference_dynamodb_table](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource |
269270
| [aws_iam_role_policy_attachment.data_collection_document_store](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource |
270271
| [aws_iam_role_policy_attachment.data_collection_ecs_execution](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource |
272+
| [aws_iam_role_policy_attachment.data_collection_lloyd_george_reference_dynamodb_table](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource |
271273
| [aws_iam_role_policy_attachment.data_collection_lloyd_george_store](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource |
272274
| [aws_iam_role_policy_attachment.data_collection_ssm_access_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource |
273275
| [aws_iam_role_policy_attachment.data_collection_statistical_reports_store](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource |
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
module "bulk_upload_metadata_preprocessor_lambda" {
2+
source = "./modules/lambda"
3+
name = "BulkUploadMetadataPreprocessor"
4+
handler = "handlers.bulk_upload_metadata_preprocessor_handler.lambda_handler"
5+
6+
iam_role_policy_documents = [
7+
module.ndr-bulk-staging-store.s3_read_policy_document,
8+
module.ndr-bulk-staging-store.s3_write_policy_document,
9+
module.ndr-app-config.app_config_policy
10+
]
11+
rest_api_id = null
12+
api_execution_arn = null
13+
14+
lambda_environment_variables = {
15+
APPCONFIG_APPLICATION = module.ndr-app-config.app_config_application_id
16+
APPCONFIG_ENVIRONMENT = module.ndr-app-config.app_config_environment_id
17+
APPCONFIG_CONFIGURATION = module.ndr-app-config.app_config_configuration_profile_id
18+
WORKSPACE = terraform.workspace
19+
STAGING_STORE_BUCKET_NAME = "${terraform.workspace}-${var.staging_store_bucket_name}"
20+
}
21+
22+
is_gateway_integration_needed = false
23+
is_invoked_from_gateway = false
24+
lambda_timeout = 900
25+
reserved_concurrent_executions = local.bulk_upload_lambda_concurrent_limit
26+
}

0 commit comments

Comments
 (0)