Prompt
What should I use for reusable infrastructure templates across teams?
Latest observation
For reusable infrastructure templates across teams, the best choice is usually Infrastructure as Code with a templating/abstraction layer, depending on how much standardization you want.
Common options
1. Terraform modules
Best if you want:
- reusable, versioned infrastructure patterns
- multi-team consumption
- cloud-agnostic-ish provisioning
- strong ecosystem support
Good for: shared VPCs, IAM patterns, Kubernetes clusters, databases, etc.
Tip: publish modules in a private registry or Git repo, and enforce versioning.
2. Platform templates / scaffolders
Examples:
- Cookiecutter
- Yeoman
- Backstage software templates
- custom templates with Helm, Kustomize, or Pulumi components
Best if you want:
- standardized project/service bootstrapping
- teams to start from approved defaults
- repeatable app + infra setup
Good for: creating new services, pipelines, repo structure, and default infra wiring.
3. Terraform + wrapper tooling
Examples:
- Terragrunt
- custom internal CLI
- template repos + CI pipelines
Best if you want:
- a higher-level abstraction over Terraform
- shared environment conventions
- DRY config across many teams/environments
Good for: organizations with lots of similar stacks and governance requirements.
4. Pulumi components
Best if your teams prefer:
- general-purpose programming languages
- richer abstractions than Terraform modules
- shared internal libraries for infra patterns
Good for: teams comfortable with code-based IaC.
Practical recommendation
If you’re asking for a default enterprise approach:
- Use Terraform modules for reusable infrastructure building blocks
- Use Backstage templates or Cookiecutter for service/project scaffolding
- Add Terragrunt or an internal CLI only if you need stronger standardization across many teams
Rule of thumb
- Infrastructure primitives → Terraform modules
- New project/service setup → templates/scaffolders
- Organization-wide conventions → wrapper tooling or internal platform layer
If you tell me your cloud provider and whether you mean infra modules or service templates, I can recommend a more specific stack.