Home / Companies / Steadybit / Blog / Post Details
Content Deep Dive

How-to: AWS Lambda Functions Failure Injection with Steadybit

Blog post from Steadybit

Post Details
Company
Date Published
Author
Johannes Edmeier
Word Count
1,069
Language
English
Hacker News Points
-
Summary

The guide provides a detailed walkthrough for implementing chaos engineering on AWS Lambda functions using the Steadybit AWS extension and the failure-lambda library by Gunnar Grosch. It covers the prerequisites such as having a Steadybit and AWS account, and necessary local installations like Node, npm, and AWS CLI. The process involves creating and deploying an AWS Lambda function integrated with the failure-lambda library to enable failure injection, then deploying the Steadybit agent and AWS extension on a t2.micro EC2 instance. The guide outlines configuring the Lambda function to read failure injection parameters from AWS Systems Manager (SSM) and setting up the Steadybit agent to interact with AWS resources. It also describes designing and executing a chaos experiment using the Steadybit platform to inject status codes into the Lambda function, demonstrating how the failure-lambda library alters the function's behavior to simulate failures. The document highlights the potential for testing various failure scenarios to assess the resilience of applications dependent on the Lambda functions.