From 31ca42c00707e90615c867207362a0c8a0faa318 Mon Sep 17 00:00:00 2001 From: Zach Wolfenbarger <zach.wolfenbarger@gmail.com> Date: Tue, 24 Jan 2023 15:14:12 -0600 Subject: [PATCH] Add new Galaxy Zoo project to lambda forwarder (#390) * Update package requirements * Add new project ID * add explicit runtime version param Co-authored-by: lcjohnso <lcj@northwestern.edu> --- kinesis-to-http/function.py | 2 +- kinesis-to-http/lambda.json | 3 ++- kinesis-to-http/requirements.txt | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/kinesis-to-http/function.py b/kinesis-to-http/function.py index fb612cae..7099c729 100644 --- a/kinesis-to-http/function.py +++ b/kinesis-to-http/function.py @@ -4,7 +4,7 @@ ENDPOINT = "https://education-api.zooniverse.org/kinesis" HEADERS = {"content-type": "application/json"} -PROJECTS = ["593", "3525", "2308", "2545", "9908", "2789"] +PROJECTS = ["593", "3525", "2308", "2545", "9908", "2789", "20344"] def lambda_handler(event, context): payloads = [json.loads(base64.b64decode(record["kinesis"]["data"])) for record in event["Records"]] diff --git a/kinesis-to-http/lambda.json b/kinesis-to-http/lambda.json index eb2d57b5..5c9ea98a 100644 --- a/kinesis-to-http/lambda.json +++ b/kinesis-to-http/lambda.json @@ -2,6 +2,7 @@ "name": "kinesis-to-http", "description": "It forwards ZooStream to Education API HTTP endpoints", "region": "us-east-1", + "runtime": "python3.9", "handler": "function.lambda_handler", "role": "arn:aws:iam::927935712646:role/zooniverse-kinesis-lambda", "requirements": [], @@ -12,4 +13,4 @@ ], "timeout": 30, "memory": 128 -} \ No newline at end of file +} diff --git a/kinesis-to-http/requirements.txt b/kinesis-to-http/requirements.txt index f75416fa..ec361f5b 100644 --- a/kinesis-to-http/requirements.txt +++ b/kinesis-to-http/requirements.txt @@ -1,2 +1,2 @@ -lambda-uploader==1.0.1 -requests==2.20.0 \ No newline at end of file +lambda-uploader==1.3.0 +requests==2.28.2 \ No newline at end of file