Wake up to a happy text every day! Morning Joy lets you start each day on a good note by texting you an uplifting news story and a picture of something cute.
Clone this repo and run
yarn install. Then run
zip -r lambda.zip . -x *.git* to generate a ZIP file to upload into the Lambda function.
Add the following environment variables to the function:
- DESTINATION_PHONE_NUMBER (the phone number that should receive the text)
- TWILIO_ACCOUNT_SID (from the Twilio dashboard)
- TWILIO_AUTH_TOKEN (from the Twilio dashboard)
- TWILIO_PHONE_NUMBER (the number that you purchased).
Be aware that Twilio expects phone numbers to be in E.164 format (e.g. "+12348889999").
Add a CloudWatch Events
with a schedule expression like
cron(0 10 * * ? *), which will fire the
function every day at 10 a.m. UTC. Adjust the schedule as you would like it.
Enjoy the texts!