Serverless Reminder App on AWS using S3, API Gateway, Lambda, Step Functions, SNS and SES
The application will use SES (Simple Email service) to send reminder emails and SNS (Simple Notification Service) to send notification messages. Since SES starts off in sandbox mode, that means you can only add verified email addresses to send emails to.
To keep things simple, the application needs one application sender email address (from which the application will send email) and one application customer email address (for the test customer).
However in production, it can be configured that email notfications can be sent to any number of customers.
Start off in SES console
Go to Verified Identities
under configuration tab and then click on Create Identity
Click on Email address
button. Add an email address. Notice the email address I have used. It's a neat little trick Gmail has (read that in Norman Osborn's voice pls), you can add additional emails like this ( ex: you had [email protected], so you can use [email protected]).
The email I have used for the application to send emails from is : [email protected]
Don't add Tags (as they are optional)
Click on Create Identity
below
Notice that the screen which is now opened, there is an "Unverified" in red highlighted text below Identity Status.
You need to go to your Gmail, there would be an email from AWS to verify your newly created identity (in this case, [email protected]
). Click on that URL to see a Congratulations page open.
Congratulations! The new email identiy is verified now (highlighted in green text). Refresh the browser to see the updated status.
The test customer email (which the reminder app will deliver these emails to) I have used is: [email protected]
Adding another email identity in SES
console follows the same process as described in Step 1.1
If you now go to Verified identities
tab you will see both the emails
Start off in SNS
console and click on Text Messaging (SMS)
under Mobile section in left panel.
Scroll down to see account information, SNS is also in sandbox mode. So you need a verified mobile number (Sandbox destination phone no.) to take SNS out of sandbox
Click on Add phone number
in Sandbox destination phone numbers
section.
On the next screen add phone number and verification message language. Click Add Phone Number
. Type your verification code sent to you phone and click verify button.
Now we can use this number to send SMS messages to.