Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
PeckTonium authored Aug 16, 2017
1 parent d7e1ff2 commit 5a6546a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
24 changes: 24 additions & 0 deletions buildspec.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/sh
#
# buildspec.sh
# We can't use buildspec files, because they must be at the root of the repo

cd $source_path

TOPDIR=`pwd`
ARTIFACT=lambdapackage.zip

# install

# pre_build steps
virtualenv --python=python2.7 --no-setuptools --no-wheel venv
venv/bin/pip install -r requirements.txt

# build
cd venv/lib/python2.7/site-packages
zip -9 --recurse-paths $TOPDIR/$ARTIFACT *
cd $TOPDIR
zip --grow $ARTIFACT lambda.py

# post_build
# copy to s3
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
jinja2==2.9.6
boto3
requests

0 comments on commit 5a6546a

Please sign in to comment.