question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: SNS trigger on Lambda function

See original GitHub issue

Hello,

It appears that we can’t create an event source mapping on a lambda function to an SNS topic. Is this an intentional design decision or is this functionality simply not implemented yet?

Example:

lambda_client.create_event_source_mapping(
    EventSourceArn="arn:aws:sns:us-east-1:{my_account_id}:{my_topic_name}",
    FunctionName=my_function_name,
    Enabled=True,
)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kiros-sccommented, Sep 15, 2020

Hello any news for. this? the “sns_client.subscribe()” does not fix the issue, I still need the “trigger” for the lambda…

0reactions
haaf-veranacommented, Feb 18, 2020

Awesome, thanks for this info. Looks like I want:

sns_client.subscribe(
    TopicArn={my_topic_arn},
    Protocol='lambda',
    Endpoint={my_lambda_arn}
)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Using AWS Lambda with Amazon SNS
Amazon SNS invokes your function asynchronously with an event that contains a message and metadata.
Read more >
Triggering AWS Lambda with SNS Messaging - Dashbird
The SNS topic will trigger a second function called calculate . This function will perform the calculation and log out the result to...
Read more >
AWS SNS to Lambda Tutorial in Python | Step by Step
In this video, I show you how to hook up a Lambda function to an SNS topic with the sns message content as...
Read more >
AWS SNS Events: SNS to Lambda vs SNS to SQS to Lambda
Amazon SNS invokes Lambda function asynchronously with an event that contains a message and metadata. For asynchronous invocation, Lambda queues ...
Read more >
Amazon SNS Outbound via AWS Lambda - iLert Documentation
Go to the AWS Console and then to Amazon Lambda, then click on the Functions link and on the Create function button**. ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found