The INFRA.md file serves as the source of truth for your infrastructure documentation. It is generated or updated by running stakpak init.
File Structure and Content
The file uses a structured format to ensure high scannability for engineers:
- Tables: Used for structured data like Kubernetes clusters, Application stacks, Running services, and Managed data services.
- Bullet Lists: Used for general descriptions and service dependencies.
- Status Markers:
[?]: Unconfirmed items that need further investigation.[!]: Potential issues or outdated/inferred information.
Key Sections
- Cloud Providers: Accounts, regions, and key services.
- Kubernetes Clusters: Details on provider, region, version, namespaces, and GitOps tools.
- Infrastructure as Code: Tools (e.g., Terraform), backends, and key modules.
- Application Stack & Running Services: Mapping of components to technologies and their runtime locations.
- Networking, Monitoring, and Secrets: Overview of DNS, observability tools, and secrets management patterns.
Security Note: INFRA.md must never include secrets, tokens, passwords, or private key material.
# Infrastructure Overview
> Auto-generated by `stakpak init` on {date}. Verified by {user/auto}.
> Last updated: {date}
## Cloud Providers
### {Provider Name}
- **Accounts**: ...
- **Regions**: ...
- **Key Services**: ...
## Kubernetes Clusters
| Cluster | Provider | Region | Version | Namespaces | GitOps |
|---------|----------|--------|---------|------------|--------|
| ... | ... | ... | ... | ... | ... |
... (other sections) ...
*This file is maintained by Stakpak. Run `stakpak init` to refresh.*