Skip to content

Commit

Permalink
Add new Galaxy Zoo project to lambda forwarder (#390)
Browse files Browse the repository at this point in the history
* Update package requirements

* Add new project ID

* add explicit runtime version param

Co-authored-by: lcjohnso <[email protected]>
  • Loading branch information
zwolf and lcjohnso authored Jan 24, 2023
1 parent 76d19c3 commit 31ca42c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion kinesis-to-http/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]]
Expand Down
3 changes: 2 additions & 1 deletion kinesis-to-http/lambda.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [],
Expand All @@ -12,4 +13,4 @@
],
"timeout": 30,
"memory": 128
}
}
4 changes: 2 additions & 2 deletions kinesis-to-http/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
lambda-uploader==1.0.1
requests==2.20.0
lambda-uploader==1.3.0
requests==2.28.2

0 comments on commit 31ca42c

Please sign in to comment.