A serverless Email Service with SQS and Twillio SendGrid
-
Pre-requisites:
- Ensure Python 3.8 is installed
-
Install pipenv:
pip install pipenv==2023.4.29 --user
-
Install Python Dependencies:
pipenv install
-
Activate Virtual Environment:
pipenv shell
-
Add Environment Variables:
- Add the
.env
file provided to you in thebackend
directory
- Add the
-
Activate Virtual Environment:
pipenv shell
-
Start Local Server:
uvicorn main:app --reload --log-level debug --env-file .env
-
Download and Install AWS CLI:
-
Create AWS Profile:
aws configure --profile sparcs
- Input your AWS Access Key ID and AWS Secret Access Key provided to you.
- Input
ap-southeast-1
for the default region name. - Leave blank for the default output format.
-
Pre-requisites:
- Ensure
Node 14
or later is installed
- Ensure
-
Install serverless framework:
npm install -g serverless
-
Install serverless plugins:
npm install
serverless deploy --stage 'dev' --aws-profile 'sparcs' --verbose