0

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?

4
  • You can invoke lambda by SNS. Commented Jun 25, 2018 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 . Commented Jun 25, 2018 at 15:36
  • But you need to publish msg before the lambda is executed. right ? Commented Jun 25, 2018 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” Commented Jun 25, 2018 at 15:47

2 Answers 2

1

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

Sign up to request clarification or add additional context in comments.

Comments

-1

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.