Pinky - The OpenStreetMap slackbot

Pinky is an OpenStreetMap slackbot. It is named after Pinky, the pink color "talking" doll.

img_20160925_230117

Presently Pinky can post stats on features and mappers. Ex:

Thu 2016-09-29 09:00

Type, Added, Modified, Deleted
node, 9861, 129, 15
way, 561, 255, 0
relation, 6, 9, 0

Mapper, Added, Modified, Deleted
Jbowkett84, 7587, 90, 0
Petr1868, 591, 87, 15
Kathari, 558, 0, 0
Jbowkett84, 7587, 90, 0
Petr1868, 591, 87, 15
Kathari, 558, 0, 0

Scripts

Note: Insert a value for S3Bucket in all the commands below.

# Create a .zip file to upload to S3 for the lambda function
zip -r ../pinky.zip *

# Copy .zip file onto S3
aws s3 cp ../pinky.zip s3://<S3Bucket>/repos/pinky.zip

# Copy code onto S3, including the cloudformation file
aws s3 cp --recursive . s3://<S3Bucket>/repos/pinky/

# Create lambda using the cloudformation template
aws cloudformation create-stack \
    --stack-name pinky-testing \
    --template-url "https://s3.amazonaws.com/<S3Bucket>/repos/pinky/cloudformation/pinky.template" \
    --capabilities CAPABILITY_IAM \
    --parameters "ParameterKey=S3Bucket,ParameterValue=<S3Bucket>,UsePreviousValue=true"

# To delete the lambda function if required
aws cloudformation delete-stack \
    --stack-name pinky-testing

Built With

Share this project:

Updates