Skip to content
Serverless function for tweeting warnings from luftstatus
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
LICENSE
README.md
claudia.json
index.js
package.json
renovate.json

README.md

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

You can’t perform that action at this time.