Skip to content

Instantly share code, notes, and snippets.

@haranjackson
haranjackson / spacy_lambda_layer.sh
Created August 15, 2019 14:33
Deploys Python Spacy library to an AWS Lambda layer. You can specify the region, library version, language, language model, and runtime.
REGION=eu-west-1
VER=2.1.8
LANG=en
MODEL=en_core_web_sm-2.1.0
RUNTIME=python3.7
MODEL_URL=https://github.com/explosion/spacy-models/releases/download/$MODEL/$MODEL.tar.gz
docker run -v $(pwd):/out -it lambci/lambda:build-$RUNTIME \
pip install spacy==$VER $MODEL_URL -t /out/build/spacy/python
@alexcasalboni
alexcasalboni / index.md
Last active November 30, 2022 06:22
Bridge Function between Kinesis Streams and Step Functions

Bridge Function between Kinesis Streams and Step Functions

For each record read from the Kinesis Stream, a StepFunction state machine will be executed asynchronously.

Required Environment Variables

  • region: the AWS region where your StepFunction state machine is defined.
  • stateMachineArn: the ARN of the StepFunction state machine you want to execute.

Notes