Terraform module skeleton
Skeleton for a Terraform module — main, variables, outputs, README.
Follows Hashicorp module conventions + tags everything for cost tracking.
The prompt
Copy this into ChatGPT, Claude, Gemini or any assistant you already use — then paste your own resource type + cloud (aws / gcp / azure) underneath it.
Generate a Terraform module skeleton. Files: **main.tf** — resources **variables.tf** — typed inputs with descriptions + defaults **outputs.tf** — exported values **versions.tf** — provider + Terraform version constraints **README.md** — usage example + variable docs Tag every resource with: Module, Environment, Owner, CostCenter. Rules: - Pin Terraform + provider versions. - Sensible defaults; required inputs have no default. - No hardcoded secrets.
Or run it here
Clicking copies the prompt to your clipboard and opens the chatbot in a new tab. Gemini doesn't accept URL params — paste manually with Ctrl/Cmd+V.
Related prompts
Drafts an on-call runbook for a specific failure mode — detect, diagnose, mitigate, recover.
Generates a multi-stage, small-image Dockerfile for a given stack.
A complete CI pipeline YAML — lint, test, build, scan, deploy — for a Node/Python/Go service.
Writes a log query (Datadog / Splunk / Loki / CloudWatch) to surface what you need.
Plan for metrics, logs, traces, and alerts for a new service — what to instrument from day 1.
Decodes any cron schedule string into when it actually runs.
Browse the full free AI prompt library or see more devops & sre prompts.