Project to spin up the infrastructure for a serverless text message response interface using twilio, apigateway, and aws lambda.
Basically a one button operationalizing of this tutorial
- Create a virtualenv and
pip install -e text_message_interface
- Install terraform
- Create a twilio account and add a phone number
- Create a secrets.yaml from the secrets.yaml.template setting account info from twilio
- Create an aws account
- Add setup credentials in ~/.aws as described here
This code will allow you to write a text responder entirely in python.
All you need to do is modify handle_text_message
in lambda_code/lambda_function.py which will receive the texted information as a string.
Make sure you have activated the venv you created above.
cd terraform_twilio
terraform init
terraform plan
terraform apply