Skip to main content
7BBusyBoss

Terraform module skeleton

Skeleton for a Terraform module — main, variables, outputs, README.

Follows Hashicorp module conventions + tags everything for cost tracking.

DevOps & SREterraformiac

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

0/8000
Output will appear here after you click Run.
Or run in your favourite chatbot

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.

Browse the full free AI prompt library or see more devops & sre prompts.