Book Image

Implementing AWS: Design, Build, and Manage your Infrastructure

By : Yohan Wadia, Rowan Udell, Lucas Chan, Udita Gupta
Book Image

Implementing AWS: Design, Build, and Manage your Infrastructure

By: Yohan Wadia, Rowan Udell, Lucas Chan, Udita Gupta

Overview of this book

With this Learning Path, you’ll explore techniques to easily manage applications on the AWS cloud. You’ll begin with an introduction to serverless computing, its advantages, and the fundamentals of AWS. The following chapters will guide you on how to manage multiple accounts by setting up consolidated billing, enhancing your application delivery skills, with the latest AWS services such as CodeCommit, CodeDeploy, and CodePipeline to provide continuous delivery and deployment, while also securing and monitoring your environment's workflow. It’ll also add to your understanding of the services AWS Lambda provides to developers. To refine your skills further, it demonstrates how to design, write, test, monitor, and troubleshoot Lambda functions. By the end of this Learning Path, you’ll be able to create a highly secure, fault-tolerant, and scalable environment for your applications. This Learning Path includes content from the following Packt products: • AWS Administration: The Definitive Guide, Second Edition by Yohan Wadia • AWS Administration Cookbook by Rowan Udell, Lucas Chan • Mastering AWS Lambda by Yohan Wadia, Udita Gupta
Table of Contents (29 chapters)
Title Page
Copyright and Credits
About Packt
Contributors
Preface
Index

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 will post the notification to an SNS topic.
  • The SNS topic will act as a trigger to our Lambda function.
  • As soon as the Lambda function gets...