Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building Serverless Applications with Python

You're reading from   Building Serverless Applications with Python Develop fast, scalable, and cost-effective web applications that are always available

Arrow left icon
Product type Paperback
Published in Apr 2018
Publisher
ISBN-13 9781787288676
Length 272 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Author (1):
Arrow left icon
Jalem Raj Rohit Jalem Raj Rohit
Author Profile Icon Jalem Raj Rohit
Jalem Raj Rohit
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. The Serverless Paradigm FREE CHAPTER 2. Building a Serverless Application in AWS 3. Setting Up Serverless Architectures 4. Deploying Serverless APIs 5. Logging and Monitoring 6. Scaling Up Serverless Architectures 7. Security in AWS Lambda 8. Deploying a Lambda Function with SAM 9. Introduction to Microsoft Azure Functions 10. Other Books You May Enjoy

SNS trigger

The SNS notification service can be used across multiple use cases, one of which involves triggering Lambda functions. The SNS trigger is popularly used as an interface between the AWS CloudWatch service and Lambda.

So, in this section, we will do the following:

  1. Create an SNS topic
  2. Create a CloudWatch alarm for our receiver-bucket bucket to monitor the number of objects in the bucket
  3. Once the objects count reaches 5, the alarm will be set to ALERT and the corresponding notification will be sent to the SNS topic that we have just created
  4. This SNS topic will then trigger a Lambda function, which prints out a Hello World message for us

This will help you understand how to monitor different AWS services and set up alarms for some thresholds for those metrics. And depending on whether the service's metrics have hit that threshold or not, the Lambda function will...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime