Book Image

Mastering AWS Lambda

By : Yohan Wadia, Udita Gupta
Book Image

Mastering AWS Lambda

By: Yohan Wadia, Udita Gupta

Overview of this book

AWS is recognized as one of the biggest market leaders for cloud computing and why not? It has evolved a lot since the time it started out by providing just basic services such as EC2 and S3 and today; they go all the way from IoT to Machine Learning, Image recognition, Chatbot Frameworks, and much more! One of those recent services that is also gaining a lot of traction is AWS Lambda! Although seemingly simple and easy to use, Lambda is a highly effective and scalable compute service that provides developers with a powerful platform to design and develop Serverless event-driven systems and applications. The book begins with a high-level introduction into the world of Serverless computing and its advantages and use cases, followed by a deep dive into AWS Lambda! You’ll learn what services AWS Lambda provides to developers; how to design, write, and test Lambda functions; as well as monitor and troubleshoot them. The book is designed and accompanied with a vast variety of real-world examples, use cases, and code samples that will enable you to get started on your Serverless applications quickly. By the end of the book, you will have gained all the skills required to work with AWS Lambda services!
Table of Contents (11 chapters)

Integrating Slack with AWS Lambda

I'm a big fan of Slack and have been using it for quite some time now. It's perhaps one of the trendiest collaboration tools, just because of it's intuitiveness and ability to program things around it! Perhaps that's why this particular use case is also one of my favorites. In this scenario, we will be using Slack as our custom EC2 alerting dashboard by integrating it with AWS Lambda and a few other services. The alerts will be sent out to a custom made Slack channel that the IT team will use to track alerts and other important notifications.

In a broader sense, here are the list of things that we plan to do for this activity:

  • Create SNS topic which will act as the Lambda trigger.
  • Create a CloudWatch alarm for one of our EC2 machines. Say if CPU utilization goes higher than 80% then, trigger the alarm.
  • The CloudWatch alarm...