This lab walks you through the steps to configure a CloudWatch alarm to know when Lambda invocation experiences errors.
In this lab, you will create two EC2 instances and attach them to the Elastic load balancer.
Duration: 1 Hour
AWS Region: US East (N. Virginia) us-east-1
AWS Cloudwatch is a service that is used to monitor and collect the metrics from other AWS services periodically.
It collects data in the form of logs, events, and metrics and provides you with an organized view of your AWS resources.
You can use CloudWatch to detect anomalous behavior in your environments to set alarms. You can also vizualize the logs and take actions to troubleshoot issues and make sure everything works smoothly.
You can monitor AWS resources such as Amazon EC2, Amazon RDS, Amazon DynamoDB tables , and many others using Cloudwatch.
You can monitor the resource utilization in your account by setting up rules and events that will stop or terminate underutilized resources.
The AWS Lambda service allows you to run code without provisioning or managing dedicated servers.
Lambda functions are an example of "serverless" computing.
The interesting feature about lambda is you only need to pay for the compute time you consume and you do not need to pay when your code is not running.
You can run code for virtually any type of application with zero administration with the help of AWS Lambda functions.
Just upload your code to Lambda and it will take care of everything required to run and scale your code with high availability
We can set triggering events for our Lambda function so it can be triggered off an event-based action.
Lambda currently supports various languages such as java, python, node js.
Creating a simple Lambda function
Testing the function
Configuring an alarm in CloudWatch to get alerted if the lambda function encounters any issue at time of execution.
Make a breaking-change to the Lambda (purposefully).