oci_budget_cost_anomaly_monitor

This resource provides the Cost Anomaly Monitor resource in Oracle Cloud Infrastructure Budget service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/budgets/latest/CostAnomalyMonitor

Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/budget

Creates a new costAnomaly Monitor.

Example Usage

resource "oci_budget_cost_anomaly_monitor" "test_cost_anomaly_monitor" {
	#Required
	compartment_id = var.compartment_id
	name = var.cost_anomaly_monitor_name
	target_resource_filter = var.cost_anomaly_monitor_target_resource_filter

	#Optional
	cost_alert_subscription_map {

		#Optional
		cost_alert_subscription_id = oci_budget_cost_alert_subscription.test_cost_alert_subscription.id
		operator = var.cost_anomaly_monitor_cost_alert_subscription_map_operator
		threshold_absolute_value = var.cost_anomaly_monitor_cost_alert_subscription_map_threshold_absolute_value
		threshold_relative_percent = var.cost_anomaly_monitor_cost_alert_subscription_map_threshold_relative_percent
	}
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.cost_anomaly_monitor_description
	freeform_tags = {"Department"= "Finance"}
}

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 Cost Anomaly Monitor * update - (Defaults to 20 minutes), when updating the Cost Anomaly Monitor * delete - (Defaults to 20 minutes), when destroying the Cost Anomaly Monitor

Import

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

$ terraform import oci_budget_cost_anomaly_monitor.test_cost_anomaly_monitor "id"