WeSearch

Send error event of an Lambda function to SNS Topic

·4 min read · 0 reactions · 0 comments · 14 views
#aws#lambda#sns#notification#error-handling
Send error event of an Lambda function to SNS Topic
⚡ TL;DR · AI summary

The article discusses how to send error events from an AWS Lambda function to an SNS topic. It outlines the process of setting up an SNS input topic and an error topic, along with a Lambda function that simulates message processing failures. The article provides step-by-step instructions for configuring the necessary components in the AWS Console.

Key facts
Original article
DEV.to (Top)
Read full at DEV.to (Top) →
Opening excerpt (first ~120 words) tap to expand

try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 2291246) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Danh Hoang Hieu Nghi Posted on May 19 Send error event of an Lambda function to SNS Topic #sns #aws 1. Bài toán Giả sử chúng ta có một Lambda function tên là ProcessMessages. SNS InputTopic -> Lambda ProcessMessages Lambda được invoke async khi có messege publish vào trong SNS topic InputTopic.

Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from DEV.to (Top)