Skip to content

Commit b5a6cbe

Browse files
[PRMP-1420] - Modify ephemeral storage and memory size depending on environment
1 parent bc0c957 commit b5a6cbe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

infrastructure/lambda-data-collection.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ module "data-collection-lambda" {
4545
name = "DataCollectionLambda"
4646
handler = "handlers.data_collection_handler.lambda_handler"
4747
lambda_timeout = 900
48-
lambda_ephemeral_storage = 10240
49-
memory_size = 10240
48+
lambda_ephemeral_storage = local.is_production ? 10240 : 1769
49+
memory_size = local.is_production ? 10240 : 1769
5050
iam_role_policy_documents = [
5151
module.ndr-app-config.app_config_policy,
5252
module.statistics_dynamodb_table.dynamodb_read_policy_document,

infrastructure/lambda-statistical-report.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ module "statistical-report-lambda" {
4545
name = "StatisticalReportLambda"
4646
handler = "handlers.statistical_report_handler.lambda_handler"
4747
lambda_timeout = 900
48-
lambda_ephemeral_storage = 10240
49-
memory_size = 10240
48+
lambda_ephemeral_storage = local.is_production ? 10240 : 1769
49+
memory_size = local.is_production ? 10240 : 1769
5050
iam_role_policy_documents = [
5151
module.ndr-app-config.app_config_policy,
5252
module.statistics_dynamodb_table.dynamodb_read_policy_document,

0 commit comments

Comments
 (0)