Home icon

Testing and debugging Amazon CloudWatch Synthetics canary locally

AWS Cloud Operations Blog



This article explains how to set up a local testing and debugging environment for Amazon CloudWatch Synthetics canaries, which are scripts that monitor endpoints and APIs by simulating user actions.

Specifically, the article covers:

  • Overview of the solution using AWS Serverless Application Model (SAM) and Visual Studio Code
  • Prerequisites for setting up the local environment
  • Step-by-step guide to set up the environment for a Node.js canary
  • Details on the launch configuration file for debugging
  • Instructions for debugging the canary locally
  • Integrating the local testing environment into an existing canary package
  • Cleanup steps after debugging
  • Conclusion on the benefits and limitations of local debugging


Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Jun 19
2024
Testing Amazon Cognito backed APIs using Amazon CloudWatch Synthetics
Jul 2
2024
Reduce code duplication in load testing and synthetic monitoring using Amazon CloudWatch Synthetics
Sep 19
2024
Amazon CloudWatch Synthetics now supports canary tag replication to associated AWS Lambda resource
Sep 2
2025
Amazon CloudWatch Synthetics adds multi-browser support for application testing

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.