Files
ai-sdlc-standards/cost/requirements.md

29 lines
1.3 KiB
Markdown
Raw Permalink Normal View History

# Cost & Tagging Requirements
Phase: deployment
Enforcement: informational
## COST-001: Standard Resource Tagging
All cloud resources MUST include the organization's standard tag set for cost attribution.
**Rule:** Every resource that supports tagging must include: `team`, `service`, `environment`, `cost-center`. These are used for chargeback and cost allocation dashboards.
**Test:** Parse IaC files, verify tag block contains all four required keys.
## COST-002: No Unbounded Resource Allocation
Service configurations MUST define resource ceilings. No open-ended scaling or storage without limits.
**Rule:** Auto-scaling must have explicit maximums. Storage must have lifecycle policies. Compute must have resource limits. "Unlimited" is not a valid configuration.
**Test:** Check scaling configs for `maxReplicas`/`maxCapacity`. Check storage for lifecycle rules.
## COST-003: No Dedicated Infrastructure Per Tenant
Services MUST NOT provision tenant-specific infrastructure (dedicated databases, queues, or compute per customer).
**Rule:** Multi-tenancy is handled at the application layer, not the infrastructure layer. Tenant isolation through data partitioning, not resource duplication. Exceptions require FinOps approval.
**Test:** Scan IaC and Helm values for tenant-specific resource naming patterns or parameterized infrastructure per tenant.