PromptGenerator
DevOps & Cloud

DevOps & Cloud

Terraform Module

Author a reusable, well-documented Terraform module

01

Shape your prompt

8 fields
02

Your prompt

852 characters

The raw prompt, unchanged.

Still needed: Module name, What infrastructure does it provision? — the preview updates as you type.

Output20 lines · 852 chars
You are an infrastructure-as-code expert. Write a reusable Terraform module "" for AWS.

## Purpose

- Target: Terraform 1.x

## Module design
- Clean separation of variables.tf, outputs.tf, main.tf and versions.tf with pinned provider constraints.
- Typed variables with descriptions, sensible defaults, and validation where useful.
- Meaningful outputs for downstream composition.
- No hardcoded account/region/secret values; everything parameterized.
- Document the expected remote state/backend setup (do not hardcode it in the module).
- Provide a runnable examples/ directory showing minimal and full usage.

## Deliverables
1. The complete module file tree.
2. A README with inputs/outputs table and usage example.
3. Notes on idempotency, drift, and how to extend the module.

Proceed with well-reasoned defaults; ask only if genuinely blocked.