runr_cost_limit (Data Source)
A project's monthly cost limit and this month so far: the figures the project's Billing tab shows (runr_cost_limit the resource sets the limit). Null figures for a project the limit does not apply to (available = false: a fixed-price project or a free region). Needs the project's owner, projects.billing on the project or billing.view.
Example Usage#
data "runr_cost_limit" "api" {
project_id = runr_project.api.id
}
output "api_month_so_far" {
value = "${data.runr_cost_limit.api.month_to_date} of ${data.runr_cost_limit.api.amount} ${data.runr_cost_limit.api.currency} (${data.runr_cost_limit.api.state})"
}
Schema#
Required#
project_id(String) Project id.
Read-Only#
action(String)notifyorstop; null without a limit.amount(Number) The limit; null without one.available(Boolean) A limit applies to the project (a pay-as-you-go project).can_resume(Boolean) The project can be resumed: the limit stopped it and no longer stops it.checked_at(String) When the limit was last checked.currency(String) The billing currency.forecast(Number) This month so far ÷ elapsed days × days in the month.month_to_date(Number) What the project's bills of this month come to so far.percent(Number) This month so far in percent of the limit.period(String) This month (2026-10).reached_at(String) When this month reached the limit.state(String)none(no limit),ok,warningorreached.stopped(Boolean) The limit keeps the project stopped.warned_at(String) When this month's warning went out.warning_percent(Number) Percent of the limit at which the owner is warned (80).