From the course: AWS: Monitoring, Logging, and Remediation

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Custom remediation with AWS Lambda

Custom remediation with AWS Lambda

- [Instructor] Let's take our event-driven remediation workflow a step further by utilizing AWS Lambda to automate fixes in real time. In our previous video, we set up an Amazon EventBridge rule to detect when an Elastic IP is associated with an EC2 instance. Right now, this sends a notification to administrators. But what if you could go beyond alerts and have AWS automatically resolve the issue, removing the public IP from production instances before it becomes a risk? That's where AWS Lambda comes in. AWS Lambda is a service that lets you run code in response to events without provisioning or managing servers. You simply upload your code, configure a trigger, like an EventBridge rule, and Lambda takes care of everything else. Scaling, patching, and running your code only when needed. You pay only for the compute time your function uses. Here are some scenarios where Lambda shines for automated remediation. You can use Lambda to dissociate Elastic IPs from EC2 instances. This is the…

Contents