mirror of
https://github.com/Hestia-Homes/survey-extraction.git
synced 2026-06-08 11:17:29 +00:00
lambda states
This commit is contained in:
parent
53343c625e
commit
8747e671b7
11 changed files with 2 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
@ -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
|
||||
}
|
||||
|
||||
Loading…
Add table
Reference in a new issue