
In your AWS Lambda function, you get the top five articles from the Hacker News API and post them to Slack using Incoming Webhooks. The CloudWatch event then triggers an AWS Lambda function at configured intervals. You need to configure a CloudWatch scheduled event using cron syntax or rate expression (ie.

How would the app work with CloudWatch Events? Events can also schedule automated actions using cron or rate expressions. Hyde and in some cases a few different services are hidden behind the same name (hello Cognito).īeside serving logs, Amazon CloudWatch has events that deliver a near real-time stream of system events that describe changes in AWS resources. But it seems someone at AWS is a big fan of Dr. One of the available triggers is AWS CloudWatch Events. For the full list of services, see the docs here. You can trigger AWS Lambda functions with a variety of AWS services, such as API Gateway for APIs and S3 for files. To learn more about serverless and how it works with AWS, see this guide. In case you’re not familiar, serverless is a method of deploying and running applications on cloud infrastructure, on a pay-per-use basis and without renting or buying servers. But how do you trigger the AWS Lambda function at a specific time? All diagrams are created using SimpleDiagrams 4 app

At some point you decided to shut down the server where you run that app, but you still want to receive the stories. Let’s say you have a small Slack app that sends the top five stories from Hacker News to your Slack channel. How do you do some of the non-serverless tasks, such as a cronjob in a serverless application? Migrating to serverless brings a lot of questions.
