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

Advanced AI Prompt for Incident Remediation via CloudWatch and AWS Lambda

Customize the variables below to instantly engineer your prompt.

Required Variables

cloudwatch-alarm-auto-remediation-lambda.txt
Act as a Cloud Automation Engineer. Design a completely automated, human-free incident response workflow. When the critical CloudWatch Alarm [ALARM_NAME] is triggered (e.g., EC2 Status Check Failed), the architecture must instantly and autonomously invoke a specific [LAMBDA_REMEDIATION_SCRIPT] engineered to physically heal or replace the [TARGET_RESOURCE]. Provide the highly defensive Python/Boto3 code for the Lambda function responsible for executing the remediation (e.g., forcefully rebooting an instance, flushing a Redis cache, or recycling a blocked ENI). Provide the AWS CLI setup commands to securely bind the Alarm state change to the Lambda trigger via an SNS topic intermediary. Finally, map out a strict [FAILOVER_STRATEGY] detailing what the Lambda must do if its API calls to remediate the resource fail, ensuring the on-call engineer is subsequently paged.

Example Text Output

"The AI outputs a Python Lambda script for resource remediation and the AWS CLI setup to connect the CloudWatch Alarm to the Lambda via SNS."

More Cloud & DevOps Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for Incident Remediation via CloudWatch and AWS Lambda" prompt used for?

The AI outputs a Python Lambda script for resource remediation and the AWS CLI setup to connect the CloudWatch Alarm to the Lambda via SNS.

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.