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

Advanced AI Prompt for Auditing Terraform State for Compliance

Customize the variables below to instantly engineer your prompt.

Required Variables

advanced-terraform-state-compliance-audit-logic.txt
Act as a GRC (Governance, Risk, and Compliance) Specialist. Perform a strict automated audit of the provided Terraform state file payload [STATE_FILE_JSON]. You must parse the JSON structure and evaluate the real-world deployed resources against the strict controls of the [COMPLIANCE_FRAMEWORK] (e.g., CIS AWS Foundations Benchmark, SOC2). Programmatically flag any `aws_s3_bucket` missing AES256 encryption, any `aws_security_group` exposing port 22/3389 to `0.0.0.0/0`, or any unencrypted EBS volumes. Output the findings as a highly structured [REPORT_FORMAT] (Markdown or CSV) that explicitly lists the non-compliant resource ARNs and provides the exact remediating HCL code blocks required to update the Terraform configuration and bring the state into compliance.

Example Text Output

"The AI would produce a structured audit report identifying security gaps in the state file and offering specific HCL fixes for each violation."

More Cloud & DevOps Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for Auditing Terraform State for Compliance" prompt used for?

The AI would produce a structured audit report identifying security gaps in the state file and offering specific HCL fixes for each violation.

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.