AWS lambda function for tweeting warnings from luftstatus.
It is triggered by an s3 event. Retrieves the file and tweets the warnings.
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
$ npm run deploy
Add AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
to your Travis environment
Created by zrrzzt and maccyber with ❤ for Alheimsins