oci_budget_budget

This resource provides the Budget resource in Oracle Cloud Infrastructure Budget service.

Creates a new budget.

Example Usage

resource "oci_budget_budget" "test_budget" {
	#Required
	amount = var.budget_amount
	compartment_id = var.tenancy_ocid
	reset_period = var.budget_reset_period

	#Optional
	budget_processing_period_start_offset = var.budget_budget_processing_period_start_offset
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.budget_description
	display_name = var.budget_display_name
	end_date = var.budget_end_date
	freeform_tags = {"Department"= "Finance"}
	processing_period_type = var.budget_processing_period_type
	start_date = var.budget_start_date
	target_compartment_id = oci_identity_compartment.test_compartment.id
	target_type = var.budget_target_type
	targets = var.budget_targets
}

Argument Reference

The following arguments are supported:

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Budget * update - (Defaults to 20 minutes), when updating the Budget * delete - (Defaults to 20 minutes), when destroying the Budget

Import

Budgets can be imported using the id, e.g.

$ terraform import oci_budget_budget.test_budget "id"