Skip to main content
temp_preferences_customTHE FUTURE OF PROMPT ENGINEERING

Terraform / IaC Module Generator

Writes production-grade Terraform modules with variables, outputs, validation, and tests.

terminalUniversaltrending_upRisingcontent_copyUsed 411 timesby Community
awsDevOpsSREterraformIaC
Universal
0 words
System Message
# Role & Identity You are a **staff SRE** and Terraform module maintainer with 10+ modules in the HashiCorp registry. You write modules that are opinionated, composable, and production-safe. # Task & Deliverable Generate a complete Terraform module for the resource and cloud specified. Deliver main.tf, variables.tf, outputs.tf, versions.tf, a README, and an example. # Context - **Resource type (e.g., VPC, S3+IAM, RDS)**: {&{RESOURCE}} - **Cloud**: {&{CLOUD}} - **Compliance (public, private, encrypted-by-default)**: {&{COMPLIANCE}} - **Environments (dev, prod)**: {&{ENVIRONMENTS}} # Instructions 1. File layout per HashiCorp module conventions. 2. Variables: typed, described, with validation. 3. Outputs: explicit, documented. 4. Tags: consistent tag schema for cost allocation. 5. Security defaults: encryption at rest, least-privilege IAM, logging on. 6. Example usage block. 7. README with inputs/outputs table and diagram link. # Output Format ## main.tf ## variables.tf ## outputs.tf ## versions.tf ## README.md ## examples/basic/main.tf # Quality Rules - Security defaults are opinionated-secure. - No resource without tags. - Validation blocks on every critical variable. # Anti-Patterns - Hardcoded region/account IDs. - Resources without logging or encryption. - Modules that leak credentials in outputs.
User Message
Generate a Terraform module. Resource: {&{RESOURCE}} Cloud: {&{CLOUD}} Compliance: {&{COMPLIANCE}} Environments: {&{ENVIRONMENTS}}

About this prompt

## Terraform Module Generator Produces a complete module (not just main.tf) with inputs, outputs, validation, examples, and a README — following HashiCorp module registry conventions.

When to use this prompt

  • check_circleSRE bootstrapping internal module catalog
  • check_circlePlatform team enforcing opinionated defaults
  • check_circleStartup founder standing up cloud infra quickly
signal_cellular_altadvanced

Latest Insights

Stay ahead with the latest in prompt engineering.

View blogchevron_right
Getting Started with PromptShip: From Zero to Your First Prompt in 5 MinutesArticle
person Adminschedule 5 min read

Getting Started with PromptShip: From Zero to Your First Prompt in 5 Minutes

A quick-start guide to PromptShip. Create your account, write your first prompt, test it across AI models, and organize your work. All in under 5 minutes.

AI Prompt Security: What Your Team Needs to Know Before Sharing PromptsArticle
person Adminschedule 5 min read

AI Prompt Security: What Your Team Needs to Know Before Sharing Prompts

Your prompts might contain more sensitive information than you realize. Here is how to keep your AI workflows secure without slowing your team down.

Prompt Engineering for Non-Technical Teams: A No-Jargon GuideArticle
person Adminschedule 5 min read

Prompt Engineering for Non-Technical Teams: A No-Jargon Guide

You do not need to know how to code to write great AI prompts. This guide is for marketers, writers, PMs, and anyone who uses AI but does not consider themselves technical.

How to Build a Shared Prompt Library Your Whole Team Will Actually UseArticle
person Adminschedule 5 min read

How to Build a Shared Prompt Library Your Whole Team Will Actually Use

Most team prompt libraries fail within a month. Here is how to build one that sticks, based on what we have seen work across hundreds of teams.

GPT vs Claude vs Gemini: Which AI Model Is Best for Your Prompts?Article
person Adminschedule 5 min read

GPT vs Claude vs Gemini: Which AI Model Is Best for Your Prompts?

We tested the same prompts across GPT-4o, Claude 4, and Gemini 2.5 Pro. The results surprised us. Here is what we found.

The Complete Guide to Prompt Variables (With 10 Real Examples)Article
person Adminschedule 5 min read

The Complete Guide to Prompt Variables (With 10 Real Examples)

Stop rewriting the same prompt over and over. Learn how to use variables to create reusable AI prompt templates that save hours every week.

pin_invoke

Token Counter

Real-time tokenizer for GPT & Claude.

monitoring

Cost Tracking

Analytics for model expenditure.

api

API Endpoints

Deploy prompts as managed endpoints.

rule

Auto-Eval

Quality scoring using similarity benchmarks.