π° As-Built Cost Estimate: terraform-e2e
- π΅ Cost At-a-Glance
- β Decision Summary
- π Requirements β Cost Mapping
- π Top 5 Cost Drivers
- ποΈ Architecture Overview
- π§Ύ What We Are Not Paying For (Yet)
- β οΈ Cost Risk Indicators
- π― Quick Decision Matrix
- π° Savings Opportunities
- π§Ύ Detailed Cost Breakdown
- References
Generated by as-built agent | 2026-02-26
| β¬ οΈ Previous | π Index | Next β‘οΈ |
|---|---|---|
| 07-compliance-matrix.md | README | β |
Generated: 2026-02-26 Source: Deployed Terraform resources + design-time estimate artifact Region: swedencentral Environment: dev IaC Reference: ../../infra/terraform/terraform-e2e/
π΅ Cost At-a-Glance
As-built monthly total: Pending verified repricing
The design-time estimate in 03-des-cost-estimate.md was ~$25β$60/month, but the deployed architecture changed from B1 to P1v3 App Service Plan, which materially changes total cost.
| Status | Indicator |
|---|---|
| Cost Trend | β¬οΈ Increased vs design due to App Service Plan SKU uplift |
| Savings Available | β Available via right-sizing if P1v3 is not required |
| Compliance | β Cost still within documented soft-budget posture pending final repricing |
β Decision Summary
- β
Implemented as-built stack with PremiumV3 App Service plan (
P1v3, capacity 3) - β³ Deferred exact dollar repricing pending validated pricing run for current SKU/region
- π Redesign trigger: move to production-grade private networking and/or multi-region DR
Confidence: Medium | Expected Variance: High until verified pricing run is completed
Design vs As-Built Summary
| Metric | Design Estimate | As-Built | Variance | Status |
|---|---|---|---|---|
| Monthly Estimate | ~$25β$60 | Pending verified repricing | Expected increase | β οΈ |
| Annual Estimate | ~$300β$720 | Pending verified repricing | Expected increase | β οΈ |
π Requirements β Cost Mapping
| Requirement | Architecture Decision | Cost Impact | Mandatory |
|---|---|---|---|
| 99.5%+ availability target | App Service Plan uplift to P1v3 |
Significant increase over B1 | Yes |
| Data protection and restore | Azure SQL Basic with geo backup redundancy | Moderate baseline | Yes |
| Security baseline | Key Vault RBAC + purge protection | Low incremental | Yes |
| Observability | App Insights + Log Analytics + Smart Detector | Variable ingestion-driven | Yes |
π Top 5 Cost Drivers
| Rank | Resource | Monthly Cost | % of Total | Trend | Optimization |
|---|---|---|---|---|---|
| 1οΈβ£ | App Service Plan (asp-terraform-e2e-dev) |
Pending | Pending | β¬οΈ | Evaluate right-size to lower premium/standard tiers if policy allows |
| 2οΈβ£ | Azure SQL Database (sqldb-terraform-e2e-dev) |
Pending | Pending | β‘οΈ | Monitor DTU utilization; keep Basic if sufficient |
| 3οΈβ£ | Application Insights (appi-terraform-e2e-dev-3hpu) |
Pending | Pending | β¬οΈ/β‘οΈ | Set ingestion caps and sampling controls |
| 4οΈβ£ | Log Analytics (log-terraform-e2e-dev-3hpu) |
Pending | Pending | β¬οΈ/β‘οΈ | Tune retention and ingestion volume |
| 5οΈβ£ | Key Vault (kv-tfe2dev-3hpu) |
Pending | Pending | β‘οΈ | Usually low; monitor transaction count |
ποΈ Architecture Overview
As-built cost profile is dominated by the App Service compute tier selection (P1v3, 3 workers) rather than originally planned cost-optimized B1.
| Category | Cost Posture |
|---|---|
| Compute | High relative share (expected dominant cost driver) |
| Data Services | Low-to-moderate |
| Monitoring | Variable by telemetry volume |
| Security | Low |
π§Ύ What We Are Not Paying For (Yet)
- Private endpoints and VNet integration for app/data services
- Multi-region active/passive duplication of full workload
- Additional premium security SKUs (beyond current baseline)
- Front Door/WAF service layer
β οΈ Cost Risk Indicators
| Resource | Risk Level | Issue | Mitigation |
|---|---|---|---|
| App Service Plan P1v3 | π΄ High | Highest expected monthly spend driver | Re-validate capacity requirement and autoscale profile |
| App Insights / Log Analytics | π‘ Medium | Telemetry ingestion spikes can increase spend | Apply sampling + daily cap governance |
| SQL Database | π‘ Medium | Growth may force tier uplift | Track DTU/storage and pre-plan upgrade path |
π― Quick Decision Matrix
| Requirement | Additional Cost Direction | SKU/Config Change | Verdict | Notes |
|---|---|---|---|---|
| Maintain current premium compute posture | β¬οΈ | Keep P1v3 capacity 3 |
π‘ Monitor | Validate sustained utilization |
| Return to cost-optimized dev posture | β¬οΈ | Downgrade plan tier/capacity | π’ Candidate | Requires capacity and policy validation |
| Production-ready network hardening | β¬οΈ | Add private endpoints + networking | π‘ Plan | Security/compliance trade-off |
π° Savings Opportunities
- Right-size App Service Plan based on observed CPU/memory utilization windows.
- Enforce telemetry caps for App Insights and Log Analytics.
- Keep SQL Database at Basic unless validated workload demands exceed thresholds.
π§Ύ Detailed Cost Breakdown
IaC / Pricing Coverage
| Signal | Value | Status |
|---|---|---|
| Deployed resources detected | 10 | β |
| Major SKUs identified | App Service P1v3, SQL Basic, Log PerGB2018 |
β |
| Verified as-built dollar pricing for all SKUs | Not available in this run | β οΈ |
Line Items (SKU-validated, price-pending)
| Category | Service | SKU / Meter | Quantity / Units | Est. Monthly |
|---|---|---|---|---|
| π» Compute | App Service Plan | P1v3 (PremiumV3) | Capacity 3 | Pending |
| π» Compute | App Services (2) | On shared P1v3 plan | 2 apps | Included in plan |
| πΎ Data Services | Azure SQL Database | Basic (5 DTU) | 1 app DB + master DB | Pending |
| π Monitoring | App Insights | Workspace-based | 1 component | Pending |
| π Monitoring | Log Analytics | PerGB2018, 30-day retention | 1 workspace | Pending |
| π Security | Key Vault | Standard | 1 vault | Pending |
Notes
- This as-built estimate intentionally avoids unverified dollar figures for changed SKUs.
- A follow-up pricing pass is required to finalize exact monthly/annual totals for the deployed configuration.
- Design-time baseline remains available in 03-des-cost-estimate.md.
References
| Topic | Link |
|---|---|
| Design estimate baseline | 03-des-cost-estimate.md |
| Deployed resource evidence | 06-deployment-summary.md |
| Azure pricing calculator | Calculator |
| Cost management | Overview |
| β¬ οΈ 07-compliance-matrix.md | π Project Index | β‘οΈ β |
|---|