File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ env_name = "sdp-dev"
77lambda_name = "github-repository-archive-script"
88lambda_version = "v0.0.1"
99lambda_arch = "x86_64"
10- lambda_timeout = 300
10+ lambda_timeout = 900
11+ lambda_memory = 512
1112schedule = "cron(0 6 ? * 2 *)"
1213github_org = "ONS-Innovation"
1314github_app_client_id = "123456789"
Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ resource "aws_lambda_function" "lambda_function" {
4141 mode = " Active"
4242 }
4343
44+ memory_size = var. lambda_memory
45+
4446 role = aws_iam_role. lambda_function_role . arn
4547
4648 environment {
Original file line number Diff line number Diff line change @@ -71,6 +71,12 @@ variable "github_app_client_id" {
7171 type = string
7272}
7373
74+ variable "lambda_memory" {
75+ description = " AWS Lambda Memory Size in MB"
76+ type = number
77+ default = 128
78+ }
79+
7480variable "region" {
7581 description = " AWS region"
7682 type = string
You can’t perform that action at this time.
0 commit comments