Skip to content

bjacobel/bosfoodfails

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

###bosfoodfails

Get recent "food establishment" inspection violations and tweet them to @bosfoodfails.

Uses AWS Lambda, AWS KMS, AWS DynamoDB and the Socrata API (data.cityofboston.gov's Open Data vendor).

####Deploy to Lambda:

./deploy.sh

Cron settings for event source: cron(*/20 0-2,12-23 ? * * *)

####KMS secret management: Encrypt:

aws --profile bjacobel kms encrypt --key-id <key> --plaintext "<secretValue>" --query CiphertextBlob --output text | base64 --decode > ./secrets/<secretKey>

Decrypt:

with open('./secrets/<secretKey>', 'rb') as f:
    print(kms.decrypt(
        CiphertextBlob=f.read()
    )['Plaintext'])

About

Tweeting health code violations of Boston restaurants.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published