Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

jbcurtin/bert-simple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bert Simple

Introduction to bert-etl with the least amount of code possible

Install

$ git clone [email protected]:jbcurtin/bert-simple.git
$ cd bert-simple
$ virtualenv -p $(which python3) env
$ source env/bin/activate
$ pip install bert-etl

Overview

staging contains all the codes meant to be run in this example. If you'd like to only deploy one function to AWS lambda, you can use bert-runner.py to test the code locally and then use bert-deploy.py to run the code in AWS lambda

# Run code locally
$ bert-runner.py -m staging

# Build code to run in AWS lambda
$ bert-deploy.py -m staging

# Run code in AWS Lambda
$ bert-deploy.py -m staging -i

Helper Images

To run bert-etl locally using bert-runner.py, you'll need a redis connection listening on 6379 of your host. Here is a docker command that'll do that for you

docker run -p 6379:6379 -d redis

How to install docker

Please reference the following gist for a complete install script, https://gist.github.com/jbcurtin/ea10d25475de401360fd9d44b5d392ac

Bert ETL Documentation

https://bert-etl.readthedocs.io/en/latest/

Logging

AWS Lambda logs to /aws/lambda groups. awslogs provides a seemless way of tailing logs from your console.

Lets start by identifying which log group AWS lambda uses. We can do this two ways.

# first way by aws-cli
$ pip install aws-cli
$ aws log describe-log-groups |grep '/aws/lambda'

# second way
$ pip install awslogs
$ awslogs get /aws/lambda/first_aws_lambda_function ALL --watch

When the function is ran, the log group is auto-magically created by aws services

Aws Creds file

[default]
region=us-east-1
aws_access_key_id = 
aws_secret_access_key =

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages