Skip to content

Instantly share code, notes, and snippets.

@mybluedog24
Last active March 7, 2019 03:52
Show Gist options
  • Save mybluedog24/4d7913cd79b18d96356459241c0350bf to your computer and use it in GitHub Desktop.
Save mybluedog24/4d7913cd79b18d96356459241c0350bf to your computer and use it in GitHub Desktop.
These are the required packages for Lambda layer for connecting AWS Elasticsearch.
#!/bin/bash
export PKG_DIR="python"
rm -rf ${PKG_DIR} && mkdir -p ${PKG_DIR}
docker run --rm -v $(pwd):/foo -w /foo lambci/lambda:build-python3.6 \
pip install -r requirements.txt -t ${PKG_DIR}
requests==2.19.1
requests-aws4auth==0.9
elasticsearch==6.3.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment