This is the code for a basic AWS Lambda function written in Python (3.7) which sends a Pokedex entry via SMS and email every day.
- Create a virtual environment to store your Python packages.
python3 -m v-env
source v-env/bin/activate
pip install
- Create a
.env
file to store your configuration.cp .env.example .env
- Edit the contents of
.env
to include your Twilio SID, auth token, and from number. Also include your SendGrid API key and the email address and phone number that the Pokedex entry should be sent to.
The script must be deployed as a Python deployment package. To do so, whilst in the virtual environment run package.sh
.