How to set DeadLetterQueue (DLQ) on AWS Lambda functions using the AWS CLI

UPDATE: It's important to note that as of now, DLQ's are ONLY supported in the us-east-2 (Ohio) region. While this command doesn't return any errors in other regions, it also doesn't make any changes.

One of the cooler announcements from re:Invent that you can start using right now is Dead Letter Queues (DLQ) for AWS Lambda functions. This has the advantage of allowing you to re-try, and alert, on events that fail even after being re-tried by AWS Lambda automatically.

You can find out more information on DLQ for Lambda by reading the official documentation, however in order to get quickly started with it, you should create a new SQS queue and configure a lambda function to send to it. This should be able to be done through the AWS Console, but it doesn't appear to be there yet, so here's how to get started with the CLI.

First, upgrade to the latest version:

sudo pip install -U awscli

Then, update your function:


aws lambda update-function-configuration --function-name LambdaFunctionName --dead-letter-config TargetArn=sqs or sns arn

That's it, you should start seeing DLQ events coming in on the SQS queue you configured anytime there is a complete failure, after Lambda's re-tries have all failed.

From here, you can set up alerts using SES, you could set this up to notify you via SNS, or have another Lambda function read the queue every few minutes to pick up and try re-processing the events at a later date.

Comments

sellakumar said…
I am really impressed with the way of writing of this blog. The author has shared the info in a crisp and short way.


Cloud Migration services

Aws Cloud Migration services

Azure Cloud Migration services
sellakumar said…
Thank you for the informative post about Security challenges in AWS , Found it useful . cloud migration services have now become secured and with no-risk

Cloud Migration services


Best Cloud Migration Tool
Clothing women said…
Instyle jackets is one of the best website for leather jacket products. Buy now to get the best services.

Unknown said…
Especially if you’re unfamiliar with the different types jackets and coats than we are here only to provide you ourb3 bomber sheepskin shearling leather jacket at your doorstep worldwide.

Gorish dua said…
Thanks for sharing.
We at Antino Labs believe in redefining and refining our model to suit the industry's requirements. Antino Labs' several years of experience in the market has let us register our global presence. Antino Labs' has the vision to become the world's most trusted partner for digital transformation and we aim to become a brand that defines innovation and the latest technology. We offer clients a one-stop solution for all their interests. Click the below links if you're looking for Web Development Company in Gurgaon, Website Designing Company in Gurgaon, Technology Consultant Services, Ecommerce Account Management Services, Mobile App Development Company in Gurgaon and UI UX Design Services.
alsamotive said…
One of the most important maintenance services for your car, truck or SUV is none other than the oil and filter change. Scheduled maintenance will keep your car running smoothly for years, and it can even help increaseCar ac repair near me Abu Dhabi the value if you ever decide to sell your car. ALSA Automotive Repair is pleased to assist you with a complete oil change, lube and filter service.
Together with our comprehensive knowledge of materials and safety protocols that follow strict regulations, we offer a wide range of bulkdry bulk trucking transportation trucks to ensure that each load is hauled and transported safely and efficiently.
Unknown said…
Thank you for the informative post about Security challenges in AWS , Found it useful . cloud migration services have now become secured and with no-risk..
buy bulk instagram accounts
Anonymous said…
Great post! Thanks for sharing this useful information keep update more about this

Visit: https://www.sevenmentor.com/amazon-web-services-training-institute-in-pune.php
Gorish dua said…
Check out these clutch reviews. clutch reviews.
Anonymous said…
This comment has been removed by the author.
Anonymous said…
Great post! Thanks for sharing this useful information keep update more about this.
Visit: AWS Classes in Pune
Anonymous said…
AWS skills are at the top list of the most demanding skills for employers nowadays. AWS has excellent career opportunities with around 25,361 jobs openings and around 60% of cloud computing jobs needed AWS skills.
Visit: AWS Courses in Pune
AWS Training in Pune
Unknown said…
I feel completely that love and read more on this topic. I am very glad to read this info. It helps me very much to solve some problems. Buy Google Voice Numbers I really like and recognize your website post. Thanks for this post. Google Voice numbers for sale
Rubina Sudais said…
Hasten is uniquely positioned to maximize the success of its customers by utilizing its vast network of relationships along withFly Ash Texas its unwavering focus on its core principles of honesty, reliability, quality, credibility, and trust. With the goal of providing quality products, safely, and on a timely basis, Hasten will ensure you are satisfied with the end result.
Techwriter said…
I recently came across your article and have been reading along. I want to express my admiration of your writing skill and ability to make readers read from the beginning to the end.
AWS Training In Pune

jeeniehogwartz said…
We are The Truffleers and we have a passion for delicious, chocolate truffles! Our exquisite truffles have been lovingly made in FranceBuy chocolate truffles Riyadh since the early 1930’s using only the finest, most exquisite ingredients. Magnifique!
Anonymous said…
This is a very nice one and gives in-depth information. I am really happy with the quality and presentation of the article. I’d really like to appreciate the efforts you get with writing this post. Thanks for sharing.
SAP MDG Classes in Pune
SAP ABAP Classes in Pune
bomber style said…
boneshia.com is one of the best leading leather jacket website of 2022 which provide best leather jackets. we make latest leather jacket designyellowstone tv series official merchandise plus we make custom leather jacket designs as well to make them for you. buy from here to get the best quality leather jackets.
The diploma in software testing (DST) offered by SevenMentor Institute targets this need by training students through a structured program for having the right balance of theory and practical sessions. During the program the students get to know the ins and outs of practical techniques of testing as are expected by the industry. DST ensures an exhaustive coverage of the entire spectrum of Software testing Classes in Pune .
Looking for a quality plastering contractor in Edmonton? Look no further than brandtplastering. We are a trusted contractor that has years of experience in the plastering industry, and we are committed to providing qualitycladding repairs edmonton workmanship and customer service. We offer a wide range of services, including residential and commercial plastering, restoration work, and more. Contact us today to learn more about our services and how we can help you achieve the results you need.
Anonymous said…
Number of Software Testing Job Opportunities - Every organisation that employs software, which is practically everyone, need software testers. Testing is required in almost every industry, from health to commerce to computer gaming. You may also pick between manual testing, automation testing, and performance testing. Software Testing Training in Pune
Anonymous said…
Let us gain some clarification on how to make the most out of AWS Course in Pune, whether you reside in Pune or not. It-Education Centre offers both online and offline courses. Here are some ideas to consider to help you grasp the significance of getting the most out of your education.

AWS certifications come in a variety of forms. Choose it with your long-term goals in mind. If you don't have a technical background, start with a beginner's course. A cloud practitioner's foundational course, for example, is an entry-level course. for more info visit: AWS Training In Pune
Software testing is a process where defects in a produced product are detected. Software testing training helps in identifying faults, unfulfilled requirements, and disparities with actual results so that they can be corrected or addressed. Before a product is introduced to the market, it must undergo a thorough examination for faults and various other aspects such as quality, weaknesses, performance, etc. This is called software testing training.



software testing courses .php
Courses in clinical research Studying human population health and illness is a topic that is expanding quickly in Pune. It is an essential part of the healthcare sector, and there is a big need for qualified people in this area. A job in clinical research may be immensely fulfilling since it provides the chance to actually change people's lives.

clinicalresearchcourses
Megha Rai said…
Clinical research courses are an essential tool for students looking to pursue a career in the field of clinical research. These courses provide students with a comprehensive understanding of the field, including its purpose, the types of studies that are conducted, and the importance of regulatory compliance.


clinicalresearchcourses
hellatwinkle said…
The DLQ feature for AWS Lambda is a great addition that can improve the reliability of serverless applications. It's good to see AWS continuing to add useful features to their services. On a different note,electra eglo fansare known for their stylish designs and energy efficiency, making them a great choice for any modern home or office.



Edwin said…
Cet article est une ressource précieuse pour tous ceux qui souhaitent en savoir plus sur le sujet. Le Test de Click est un outil inestimable qui a considérablement amélioré l'expérience utilisateur de notre site Web, nous aidant à identifier et à corriger les problèmes d'utilisabilité avec précision et efficacité.
envirosteam said…
Setting up DeadLetterQueue (DLQ) for AWS Lambda functions using the AWS CLI is a valuable skill for seamless error handling in serverless applications. Just as attention to detail matters in AWS, consider the meticulous care provided by Car Detailing Ottawato keep your vehicles in top-notch condition, ensuring a smooth and error-free ride.




Curbsidecar said…
Great AWS Lambda tutorial! Just as Ceramic Coating services in Ottawa adds an extra layer of protection, this guide adds a layer of resilience to your Lambda functions. #AWSLambda #TechTutorial #OttawaCeramicCoating




Anonymous said…
A data science course is a program of study that focuses on the techniques and methods used to extract knowledge and insights from data. These courses typically cover topics such as statistics, programming, machine learning, data visualization, and domain-specific knowledge. Data science courses are offered at universities, colleges, and online education platforms at the undergraduate and graduate levels. They are often interdisciplinary, combining elements of computer science, statistics, and domain-specific knowledge. SevenMentor is one of the most respected and trusted names when it comes to Data Science Training In Pune.
Setting up Dead Letter Queue (DLQ) for AWS Lambda functions is crucial for robust error handling. The process becomes seamless with the AWS CLI, offering efficiency and control. Just as you ensure the reliability of your AWS infrastructure, consider the peace of mind that comes with a Reliable Commercial Fencing Company in Edmonton for your physical security needs. With both digital and physical safeguards in place, you can confidently build a resilient foundation for your projects. Happy coding and securing!"





Anonymous said…
informative blog keep posting aws training in pune
Maria said…
You have done good work by publishing this article here about the aws courses and 101desires.com computer . I found this article too much informative, and also it is beneficial to enhance our knowledge
marrwahdoubleR said…
Need professional mobile app development services? Visit the link below for expert solutions:
Mobile App Development Services
marrwahdoubleR said…
Need reliable website maintenance services to keep your site running smoothly? Visit the link below:
Website Maintenance Services