I had a lambda function written in Golang. And I was trying to publish a message to SNS topic from lambda function before the lambda is executed . Is it possible to do so?
Asked
Active
Viewed 1,425 times
-1
-
You can invoke lambda by SNS. – Niroshan Ranapathi Jun 25 '18 at 15:33
-
Are you referring to using SNS to trigger lambda ? I was looking for other way around . Wanted to publish the message to SNS using lambda function . I probably might have to use AWS SDK , however I do not know if it is possible for lambda backed by Golang . – rsram312 Jun 25 '18 at 15:36
-
But you need to publish msg before the lambda is executed. right ? – Niroshan Ranapathi Jun 25 '18 at 15:39
-
Probably my wording was bit confusing . I am fine if message is published just after lambda is triggered, at very beginning of function. Message would be something like : “Lambda just got triggered” – rsram312 Jun 25 '18 at 15:47
2 Answers
0
Yes, you can publish a message to SNS topic using a lambda function written in Go language.
You can use the AWS SDK for GO

Arafat Nalkhande
- 11,078
- 9
- 39
- 63
0
Although Arafat's answer is absolutely correct but if someone is really stuck here then for a detailed and step by step information on how to connect SNS with lambda function written in GoLang, can refer to : https://medium.com/@madhavchaturvedi/awesomeness-of-golang-aws-lambda-d6bd08131117

Madhav Chaturvedi
- 573
- 5
- 14