Refer to the Steps below to add the setup Email/SMS authentication
STEP 1: #
- Sign in to the AWS Console, Navigate/Search for IAM
- Click on “IAM“
![](https://docs.tctech.in/wp-content/uploads/2023/12/se_1-1024x543.png)
STEP 2: #
- Click on “Roles” under Access Management tab
- Click on “Create Role” to create a role to allow send SMS/Email.
![](https://docs.tctech.in/wp-content/uploads/2023/12/se_2-1024x332.png)
STEP 3: #
- Select “AWS service” as Trusted Entity type
- Select “Lambda” as Service or use case
Click Next
![](https://docs.tctech.in/wp-content/uploads/2023/12/se_3-1024x519.png)
STEP 4: #
Search for “ses” and check “AmazonSESFullAccess”
![](https://docs.tctech.in/wp-content/uploads/2023/12/se_4-1024x337.png)
STEP 5: #
Search for “sns” and check “AmazonSNSFullAccess”
![](https://docs.tctech.in/wp-content/uploads/2023/12/se_5-1024x479.png)
STEP 6: #
- Set Role name as “smsEmailSendingRole”
- Make sure the Policy Access tab has “AmazonSESFullAccess” and “AmazonSNSFullAccess” enabled as perfomed in the above 2 steps.
Click Create Role
![](https://docs.tctech.in/wp-content/uploads/2023/12/se_6-1024x532.png)
IAM role will be created successfully !
STEP 7: SES setup for Email Verification #
For Users using Email Authentication during Sign In, the Login Verification code to users’ Email will be sent through Amazon SES (Amazon Simple Email Service).
(NOTE: If your App doesn’t have email verification, you can skip these steps)
Sign in to the AWS Console, Navigate/Search for SES, and Click on “Amazon Simple Email Service (SES)“.
![](https://docs.tctech.in/wp-content/uploads/2023/12/ses_1-1024x296.png)
SES must be moved to production mode to send verification codes to users.
STEP 8: SNS setup for Phone SMS Verification #
For Users using Phone Number Authentication during Sign In, the Login SMS Verification code to users’ Phone will be sent through Amazon SNS (Amazon Simple Notification Service).
(NOTE: If your App doesn’t have Phone SMS verification, you can skip these steps)
Sign in to the AWS Console, Navigate/Search for SNS, and Click on “Amazon Simple Notification Service (SNS)“.
![](https://docs.tctech.in/wp-content/uploads/2023/12/sns_1-1024x306.png)
SNS must be moved to production mode to send verification codes to users.