Terraform Tag Enforcement and Policy-as-Code for Atlas Cost

Parent: Atlas Cost Commitments, Cross-Org Billing and FinOps Tooling · Published reference · snapshot 2026-10-19 · skill mongodb-operations-expert/references/atlas-cost-commitments-cross-org-billing-and-finops-tooling.md · viability 3.50 / 5 (research)

↓ Facts as markdownall context files

Atlas resource tags are key-value pairs on clusters that flow into invoice CSVs and the Admin API pending-invoice lineItems.tags field, so MongoDB recommends enforcing mandatory tags and managing them through Terraform; the mongodbatlas provider exposes tags as a set of objects and has no AWS-style default_tags, leaving enforcement to modules plus plan-time Sentinel or OPA policy in HCP Terraform, for which no Atlas-specific example was found. The pack draws on 6 source URLs (Atlas tags docs, the invoice-tags GA post, the Architecture Center, provider issue 2006, HCP Terraform policy docs and the AWS default_tags post) across definitions, tag rules and limits, billing behaviour, provider limitations and policy mechanics.

These notes link each claim to its source. Some citations identify archived research reports that are no longer hosted on this site. A published reference means the content is available; it does not certify independent review or accuracy.Read the editorial policy and follow the sources before relying on a claim.

Definitions

How it works

Parameters and configuration

How-to and procedures

Examples and snippets

Problems, failure modes and limitations

Comparisons and alternatives

Changes and history

Related concepts

Children

Frontier under this node: Atlas Admin API pending-invoice tags field (2.40), Conftest/OPA rules over terraform show -json plans (2.55), Untagged spend reporting (2.65)

← the whole tree · 3D view· how to read this page