CoronaTracker notification service
CoronaTracker’s notifications service.
MONGODB_URI
environment variable locally. This can be found in MongoDB Atlas -> Clusters -> Connect (in the box of the cluster your want) -> connect your application (see here)TWILIO_ACCOUNT_SID
, TWILIO_AUTH_TOKEN
environment variables locally. This can befound on the Twilio dashboard under “Account SID” and “Auth Token,” respectivelyMONGODB_URI
environment variable (TODO: encrypt in transit)coronalert-lambda-policy
to itANY
type (see Actions button), and add requests specific to your lambdaNOTE: When building a Lambda function in Golang, follow these steps:
main.go
using GOOS=linux go build -o main
main
using zip main.zip main
main.zip
to the lambdabuild-lambda-zip
using go get -u github.com/aws/aws-lambda-go/cmd/build-lambda-zip
main.go
using GOOS=linux go build -o main
main
using ~/go/bin/build-lambda-zip.exe main
(~/go/bin/ could be different depending on your file system layout)main.zip
to the lambdaGolang is new to having native support by AWS Lambda, therefore you aren’t yet able to edit lambdas inline.