Blenra LogoBlenra
Optimized for: Gemini / ChatGPT / Claude
#AWS

Advanced AI Prompt for CloudWatch Synthetics Canary for API Health

Customize the variables below to instantly engineer your prompt.

Required Variables

cloudwatch-synthetics-canary-api-monitoring.txt
Act as an API Reliability Engineer. Design a robust CloudWatch Synthetics Canary script utilizing the `syn-nodejs-puppeteer` runtime framework, specifically engineered to constantly monitor the mission-critical [API_ENDPOINT]. The Node.js canary payload must programmatically execute a [HTTP_METHOD] (e.g., POST with a mocked JSON payload), rigorously validate that the response strictly matches the [EXPECTED_STATUS] code, and calculate if the total round-trip response time successfully satisfies the strict [LATENCY_SLA] threshold. Inject error-handling logic instructing the Puppeteer engine to capture an automated screenshot of the DOM and dump the network HAR logs directly into a secure S3 bucket upon any failure. Output the Terraform HCL to fully provision this Canary, alongside a CloudWatch Alarm configured to trigger PagerDuty if the `SuccessPercent` metric drops below 95%.

Example Text Output

"The AI generates a Puppeteer-based script for the Canary and the AWS infrastructure code required to schedule and monitor the script execution."

More Cloud & DevOps Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for CloudWatch Synthetics Canary for API Health" prompt used for?

The AI generates a Puppeteer-based script for the Canary and the AWS infrastructure code required to schedule and monitor the script execution.

Which AI tools work with this prompt?

This prompt is optimized for Gemini / ChatGPT / Claude, but works great with ChatGPT, Claude, Gemini, and other large language models. Simply copy it and paste it into your preferred AI tool.

How do I customize this prompt?

Use the variable fields above to fill in your specific details. The prompt will auto-update as you type, ready to copy instantly.

Is this prompt free?

Yes! All prompts on Blenra are free to copy and use immediately. No account required.