budget_arn
ARN of the created AWS Budget. Use this for IAM policies and resource references.
The ARN of the AWS Budget. Use this for IAM policies and resource references.
Example Value
arn:aws:budgets::123456789012:budget/monthly-spend-limit
Common Use Cases
IAM Policy Resource
resource "aws_iam_policy" "budget_viewer" {
name = "budget-viewer"
policy = jsonencode({
Version = "2012-10-17"
Statement = [{
Effect = "Allow"
Action = ["budgets:ViewBudget", "budgets:DescribeBudget"]
Resource = module.budget.budget_arn
}]
})
}
Cross-Account Reference
output "central_budget_arn" {
description = "Budget ARN for cross-account monitoring"
value = module.budget.budget_arn
}
Tagging and Tracking
locals {
budget_arns = {
production = module.prod_budget.budget_arn
development = module.dev_budget.budget_arn
staging = module.staging_budget.budget_arn
}
}
Usage
module "cost_controls" {
source = "registry.patterneddesigns.ca/governance/cost-controls/aws"
version = "0.1.0"
# ... inputs
}
# Access this output
output "budget_arn" {
value = module.cost_controls.budget_arn
}