Skip to content

Alheimsins/luftstatus-tweet-warnings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status js-standard-style

luftstatus-tweet-warnings

AWS lambda function for tweeting warnings from luftstatus.

It is triggered by an s3 event. Retrieves the file and tweets the warnings.

Deployment

To create the function on aws first run

$ npx claudia create --region <your-region> --role <your-role> --no-optional-dependencies

Login to your AWS console and add the s3 trigger and setup environment variables

access_token=your-twitter-access-token
access_token_secret=your-twitter-access-token-secret
consumer_key=your-twitter-consumer-key
consumer_secret=your-twitter-consumer-secret
bucket=bucket-for-warnings-file
warningsFileName=warnings-file-name

Updating deployment

$ npm run deploy

CI/CD with Travis

Add AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY to your Travis environment

License

MIT

About

Created by zrrzzt and maccyber with ❤ for Alheimsins