Skip to content

Commit caa13ad

Browse files
committed
fix placeholder_lambda.py folder
1 parent c870024 commit caa13ad

5 files changed

Lines changed: 4 additions & 15 deletions

File tree

infrastructure/code/py/placeholder_lambda.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import json
22

3-
# placeholder_lambda.py is a simple dummy Lambda function
4-
# that's packaged and deployed as placeholder code.
5-
# In AWS, you can't deploy a Lambda without some code,
6-
# so this serves as a baseline deployment artifact.
3+
# This is placeholder code as there has been no code deployment
74
def lambda_handler(event, context):
85
return {
96
'statusCode': 200,

infrastructure/modules/lambda/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,6 @@ resource "aws_iam_role_policy_attachment" "lambda_execution_policy" {
181181

182182
data "archive_file" "lambda" {
183183
type = "zip"
184-
source_file = "placeholder_lambda.py"
184+
source_file = "code/py/placeholder_lambda.py"
185185
output_path = "placeholder_lambda_payload.zip"
186186
}

infrastructure/modules/lambda_edge/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ resource "aws_lambda_function" "lambda" {
2020

2121
data "archive_file" "lambda" {
2222
type = "zip"
23-
source_file = "placeholder_lambda.py"
23+
source_file = "code/py/placeholder_lambda.py"
2424
output_path = "placeholder_lambda_payload.zip"
2525
}
2626

infrastructure/modules/lambda_layers/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ data "aws_caller_identity" "current" {}
66

77
data "archive_file" "lambda_layer_placeholder" {
88
type = "zip"
9-
source_file = "placeholder_lambda.py"
9+
source_file = "code/py/placeholder_lambda.py"
1010
output_path = "placeholder_lambda_payload.zip"
1111
}
1212

infrastructure/placeholder_lambda.py

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)