Posted On: Mar 26, 2021

CloudWatch Synthetics now supports the use of environment variables with canaries. You can save time by using a single canary script to create different canaries that have a similar task.

Canaries are modular, lightweight scripts that you configure to run on a schedule in order to monitor your endpoints and APIs from the outside-in. With this release, you can now use environment variables to extend a single canary script to create multiple canaries with different values. For example, if you have endpoints such as production, development, and pre-release for the different stages of your software development, and you want to create canaries to test each of these endpoints, you can use this new functionality to write a single canary script that tests your application and specify different values for the endpoint environment variable to create each of the three canaries.

To learn more about this feature, see the CloudWatch Synthetics documentation. For pricing, refer to Amazon CloudWatch pricing.