Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

AWS Lambda integration with SES

I have tried to integrate SQS, AWS Lambda with SES (Email service). But I am not able send messages.

Even It doesn’t create any cloudwatch logs for troubleshooting. Could someone tell why cloudwatch logs are not generating?

I am expecting to see logs if email sending is failed

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

I believe the issue is with that permission of role which attached to your Lambda function. The role should have permission to access SQS (ReceiveMessage) and SES (SendEmail).

For troubleshoot, add following permission to the lambda role. This permission allows you to see the Cloudwath logs and identify the issue.

{
      "Version": "2012-10-17",
      "Statement": [
          {
              "Effect": "Allow",
              "Action": [
                  "logs:*"
              ],
              "Resource": "arn:aws:logs:*:*:*"
          }
      ]
}

if you want further clarification (Step by step), please check these videos.

https://www.youtube.com/watch?v=p1jNJLJoP9s&t=400s

https://www.youtube.com/watch?v=y57oIlK9mHc&t=490s

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading