Skip to content

Instantly share code, notes, and snippets.

View matthewrmshin's full-sized avatar
🏠
😃

Matt Shin matthewrmshin

🏠
😃
  • Met Office
  • Exeter, UK
View GitHub Profile
@rhattersley
rhattersley / build.sh
Created February 26, 2020 10:53
Iris as an AWS Lambda layer
#/bin/bash
sudo rm -r opt
sudo rm -r task
mkdir task
cp container-build.sh task/
docker run -v /home/ec2-user/opt:/opt -v /home/ec2-user/task:/var/task -it lambci/lambda:build-python3.7 /bin/bash container-build.sh
pushd opt
zip -r9 ../iris-layer.zip *
popd
@matthewrmshin
matthewrmshin / triage-20190308.md
Last active March 8, 2019 15:20 — forked from kinow/triage-20190308.md
Cylc issues triage performed on 2019-03-08
@alexcasalboni
alexcasalboni / aws-lambda-static-type-checker.md
Last active May 22, 2023 07:31
AWS Lambda Static Type Checker Example (Python3)

How to use Python3 Type Hints in AWS Lambda

TL;DR

Static Type Checkers help you find simple (but subtle) bugs in your Python code. Check out lambda_types.py and incrementally improve your code base and development/debugging experience with type hints.

Your Lambda Function code will go from this: