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

Advanced AI Prompt for CloudWatch Dashboards as Code via AWS CDK

Customize the variables below to instantly engineer your prompt.

Required Variables

cloudwatch-dashboards-as-code-cdk-typescript.txt
Act as an AWS CDK Infrastructure Developer. Write an elegant, highly modular TypeScript AWS CDK script to programmatically generate a comprehensive CloudWatch Dashboard named [DASHBOARD_NAME] securely within the [STACK_NAME] deployment stack. The dashboard layout must dynamically arrange complex [WIDGET_TYPES] (e.g., Multi-Line Graphs, single-stat Gauges, and Markdown Text widgets) targeting the specific [METRIC_ARRAY] data points. Crucially, you must architect and implement a reusable TypeScript `MetricFactory` class designed to absolutely standardize metric namespace creation, statistic types (p99 vs avg), and period formatting across multiple disparate environments (Dev/Prod). Ensure the dashboard script injects custom hex colors for distinct data lines and hardcodes horizontal Y-axis annotations to visually represent absolute failure SLAs.

Example Text Output

"The AI generates a comprehensive AWS CDK TypeScript file that defines a dashboard with various widgets and a standardized metric factory."

More Cloud & DevOps Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for CloudWatch Dashboards as Code via AWS CDK" prompt used for?

The AI generates a comprehensive AWS CDK TypeScript file that defines a dashboard with various widgets and a standardized metric factory.

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.