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

Advanced AI Prompt for Recovering from Corrupted Terraform State

Customize the variables below to instantly engineer your prompt.

Required Variables

advanced-terraform-state-corruption-recovery-procedure.txt
Act as a Terraform Incident Commander. Formulate a high-stakes recovery protocol to rescue a production environment paralyzed by state corruption, indicated by [ERROR_LOGS]. Assuming verified backups reside at [BACKUP_LOCATION], author an emergency runbook detailing the surgical restoration to the [LAST_KNOWN_STABLE_VERSION]. Provide the exact CLI commands to execute a forced `terraform state push`. Detail the highly dangerous, last-resort procedure of manually editing the raw JSON state file to remove a corrupted `lineage` or `serial` lock. Conclude with a strict verification checklist utilizing `terraform plan -refresh-only` to guarantee the restored state file perfectly matches the immutable reality of the cloud provider APIs before allowing the pipeline to unfreeze.

Expected Visual Output

Expected visual output for Advanced AI Prompt for Recovering from Corrupted Terraform State

Example Text Output

"The AI would provide a critical incident response guide with specific CLI commands to download"

More Cloud & DevOps Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for Recovering from Corrupted Terraform State" prompt used for?

The AI would provide a critical incident response guide with specific CLI commands to download

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.