Home / Companies / Twilio / Blog / Post Details
Content Deep Dive

Using Twilio to Build a Serverless SMS Raffle in Python

Blog post from Twilio

Post Details
Company
Date Published
Author
Alex Laird
Word Count
2,239
Language
English
Hacker News Points
-
Summary

In this tutorial, Alex Laird demonstrates how to build a serverless SMS raffle using Python and Twilio. The raffle uses an AWS Lambda function to store entries in a DynamoDB table, with API Gateway routing incoming texts to the Lambda. When ready, another Lambda function chooses winners at random and updates their records in DynamoDB. The tutorial covers setting up AWS roles, creating Lambdas, configuring DynamoDB tables, and integrating Twilio for SMS notifications. With these components in place, users can text a super secret passphrase to enter the raffle, which is then closed and winners are randomly chosen using another Lambda function.