Tau: auto-tweet with AWS Lambda
Steps for setting up auto-tweet account (using OS X or Linux):
- Create Twitter app and get consumer and access keys.
- Fork this repository and clone to local.
- Run
make credentials_file
to createtwitter_credentials.json
. - Add consumer and access keys to
twitter_credentials.json
. - Modify
tweet_content
function intweet.py
to generate tweet string (140 characters or less). - Add PyPI dependencies to
requirements.txt
. - Run
make prepare
to generatelambda_bundle.zip
. - In the AWS console, create a Python 2.7 function with
tweet.send_tweet
as the handler. Uploadlambda_bundle.zip
to use as the code. Add a "Scheduled Event" event source. - Profit.