Skip to content

pimlock/whats-your-name

Repository files navigation

What's Your Name?

Setup

Clone the repo

git clone https://github.com/pimlock/whats-your-name.git
cd whats-your-name

Install dev dependencies (make sure you are using Python3)

pip install -r dev-requirements.txt

Create Virtualenv:

virtualenv venv
source venv/bin/activate

Create CloudFormation stack

This step requires your AWS credentials to be set up:

  • as export AWS_ACCESS_KEY_ID=""; export AWS_SECRET_ACCESS_KEY=""
  • stored in ~/.aws/credentials

Create required S3 buckets:

  1. Where CloudFormation will upload Lambda code to (CODE_DEPLOYMENT_BUCKET)
# this bucket is where the zip file with AWSLambda code will be uploaded (it's used by CloudFormation to deploy Lambda)
export CODE_DEPLOYMENT_BUCKET=my-bucket

# creates deployable package for CloudFormation
scripts/package.sh

export REKOGNITION_COLLECTION_ID=collection-id
export FACES_BUCKET_NAME=bucket-name

# creates/updates the CloudFormation stack
scripts/deploy.sh

© 2018 Piotr Mlocek. This project is licensed under the terms of the MIT license.