How alexandre-pares/terraform-azure-finops-focus-billing-export works
This Terraform module provisions Azure FOCUS billing exports. A user supplies the billing scope, export version, destination storage details, and date settings; Terraform then configures the export and can enable historical backfill. The README documents EA, MCA, MPA, subscription, and resource-group scopes, plus several FOCUS versions. Source excerpts were not available, so implementation links below rely only on relationships explicitly documented in the README; the exact Terraform internals are not verified.
Main entry points: variables.tf Export settings · main.tf Billing export · locals.months_to_backfill.tf Date and backfill · outputs.tf Module outputs
Components 10
Export configuration
- Export settings
variables.tf - Billing scopes
main.tf - FOCUS versions
variables.tf - Date and backfill
locals.months_to_backfill.tf
Azure provisioning
- Billing export
main.tf - Backfill jobs
main.tf
Export destination
- Azure storage
- Module outputs
outputs.tf
Other components
- Terraform user
- Azure Cost Management
Connections 10
- Terraform user → Export settings: configures
README.md - Export settings → Billing scopes: selects scope
README.md - Export settings → FOCUS versions: selects version
README.md - Export settings → Date and backfill: sets dates
README.md - Terraform user → Billing export: requests export
README.md - Billing export → Azure Cost Management: creates export
README.md - Billing export → Azure storage: targets storage
README.md - Date and backfill → Backfill jobs: enables backfill
README.md - Backfill jobs → Azure Cost Management: runs backfill
README.md - Billing export → Module outputs: provides outputs