File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,18 @@ locals {
6
6
lambda_runtime = " python${ var . lambda_python_version } "
7
7
}
8
8
9
+ data "archive_file" "placeholder" {
10
+ type = " zip"
11
+ source_dir = " ${ path . module } /placeholder"
12
+ output_path = " /tmp/placeholder.zip"
13
+ }
14
+
9
15
resource "aws_lambda_function" "lambda" {
10
16
function_name = local. lambda_name_camel
11
17
description = var. lambda_description
12
18
role = var. lambda_iam_role_arn
13
19
handler = var. lambda_handler
20
+ filename = data. archive_file . placeholder . output_path
14
21
runtime = local. lambda_runtime
15
22
memory_size = var. lambda_memory
16
23
timeout = var. lambda_timeout
Original file line number Diff line number Diff line change
1
+ # Placeholder Lambda function code for deployment via Terraform
2
+ def handler (event , context ):
3
+ raise Exception ('Lambda function code has not been uploaded' )
You can’t perform that action at this time.
0 commit comments