lambda states

This commit is contained in:
Jun-te Kim 2025-07-17 13:33:20 +00:00
parent 53343c625e
commit 8747e671b7
11 changed files with 2 additions and 1 deletions

View file

@ -10,6 +10,7 @@ def handler(event, context):
print("show me something.. anything...")
s3_uri = event.get("file_location")
if not s3_uri:
print("failed to get s3_uri")
return {
"statusCode": 400,
"body": "Missing 'file_location' in event"

View file

@ -73,7 +73,7 @@ resource "aws_lambda_function" "lambda_example" {
function_name = "lambda-example"
role = aws_iam_role.lambda_exec_role.arn
package_type = "Image"
image_uri = "${aws_ecr_repository.lambda_example.repository_url}:latest4"
image_uri = "${aws_ecr_repository.lambda_example.repository_url}:latest"
timeout = 10
}