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

Automated Terraform Import and Drift Reversal

Customize the variables below to instantly engineer your prompt.

Required Variables

automated-terraform-import-drift.txt
Act as a Senior Infrastructure Developer. Write an advanced bash automation script designed to brutally reverse configuration drift. The script must detect 'ClickOps' manual changes made to a [RESOURCE_TYPE] in AWS. It should automatically execute a `terraform import` pulling the [RESOURCE_ID] into the local state at [MODULE_PATH]. Furthermore, write the Python logic required to parse the resulting state file and dynamically generate the missing HCL code so the subsequent `terraform plan` results in a zero-change delta.

Example Text Output

"A robust script combining AWS CLI and Terraform CLI to dynamically ingest rogue cloud resources into an IaC repository without destroying them."

More Cloud & DevOps Prompts

View all →

Frequently Asked Questions

What is the "Automated Terraform Import and Drift Reversal" prompt used for?

A robust script combining AWS CLI and Terraform CLI to dynamically ingest rogue cloud resources into an IaC repository without destroying them.

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.