---
title: "Comment by Benoît Bouré on \"Send an SNS notification using AWS Lambda\" | Hashnode"
description: "Great article Phillip Ninan I just wanted to bring something to your attention. With the aws-sdk , you can either use the callback function (on the request meth"
url: "https://hashnode.com/posts/send-an-sns-notification-using-aws-lambda/60542931406fc6159743156d/comment/605443dd8899a615727e6a16"
---

[Discussion](https://hashnode.com/posts/send-an-sns-notification-using-aws-lambda/60542931406fc6159743156d)

Comment [Send an SNS notification using AWS Lambda](https://hashnode.com/posts/send-an-sns-notification-using-aws-lambda/60542931406fc6159743156d)

[Benoît Bouré](https://hashnode.com/@bboure)

Software developer

[Mar 19, 2021](https://hashnode.com/posts/send-an-sns-notification-using-aws-lambda/60542931406fc6159743156d/comment/605443dd8899a615727e6a16)

Great article [Phillip Ninan](https://hashnode.com/@phillip_ninan)

I just wanted to bring something to your attention. With the `aws-sdk`, you can either use the `callback` function (on the request method) - OR - use `.promise()` with `.then()` or `await`. It seems you have made a mix of moth here. The `.promise()` method does not take a callback.

Did I miss something?

[Phillip Ninan](https://hashnode.com/@phillip_ninan)

Senior Software Engineer

[Mar 19, 2021](https://hashnode.com/posts/send-an-sns-notification-using-aws-lambda/60542931406fc6159743156d/comment/605443dd8899a615727e6a16#reply-6054c60294931d1f606c9512)

[Benoît Bouré](https://hashnode.com/@bboure) No, you are correct! I forgot to add a `.then()`. I updated the article and the Github source code. Ironically, the code still executed properly with this error, but the logs were never printed.

Thank you for pointing that out!!
