Testing CloudWatch metric alarms with LocalStack

LocalStack is a cloud service emulator designed for local development and testing of cloud applications. With LocalStack, you can test AWS CloudWatch metric alarms, to get notified on infrastructure failures — all on your local machine!In this video, you will learn how you can use a CloudWatch metric alarm to get notified automatically when your Lambda function invocations fail. You will also set up an email notification using the Simple Email Service (SES) and our Mailhog extension.## Resources• CloudWatch Docs: https://docs.localstack.cloud/user-guide/aws/cloudwatch/• LocalStack Extensions: https://docs.localstack.cloud/user-guide/extensions/• Mailhog extension: https://pypi.org/project/localstack-extension-mailhog

Related Talks

Making your AWS cloud environment state persistent

Recreating the unique state of a cloud app environment is notoriously complex, making it difficult to diagnose bugs, collaborate with teammates, or even just pick up where you left off. Join us as we deep dive into LocalStack’s powerful state management and persistence features, exploring how to maintain, snapshot, and seamlessly share your local cloud environments using core features like persistence, Cloud Pods, and state files. Learn how to restore a previous state, share preconfigured environments with colleagues for collaboration or onboarding, or restore preset services and data for functional tests in CI. We'll also showcase LocalStack's new Model Context Protocol (MCP) integration, revealing how AI can manage, inspect, and automate your local cloud state.

Learn More
Learn More
Give Your AI Agent a Local AWS Environment with LocalStack

An agent will write you a CDK stack, a Terraform module, or a stack of IAM policies in seconds.

Whether any of it works is a separate question, and the usual way to find out is to deploy to a real AWS account and watch what breaks.

In an agentic workflow, that means giving AI access to a public cloud account, racking up costs on the AWS bill, and waiting for provisioning to complete every time you push new code to the environment.

Learn More
Learn More
Securing the Software Delivery Lifecycle when AI Writes the Code

The rise of agentic AI in the software delivery lifecycle creates a dilemma with high-stakes implications.

As agents create new applications at an unprecedented rate, how do you integrate security without slowing down delivery?

Learn More
Learn More

Launch yourself in the world of local cloud development

Try for free
Try for free
Talk to Sales
Talk to Sales