This sample creates a CloudWatch Alarm that monitors the timeout of a Lambda function and publishes a message to an SNS topic when the alarm is triggered.
Before running this sample, you must install the following dependencies:
To deploy this sample, run the following command:
sls deploy
To test this sample, just invoke the Lambda function.
To invoke the Lambda function using the Serverless Framework, run the following command:
sls invoke -f main
Optionally, you can invoke the Lambda function using the AWS CLI (or even the AWS Console).