oci_stack_monitoring_config

This resource provides the Config resource in Oracle Cloud Infrastructure Stack Monitoring service.

Creates a configuration item, for example to define whether resources of a specific type should be discovered automatically.

For example, when a new Management Agent gets registered in a certain compartment, this Management Agent can potentially get promoted to a HOST resource. The configuration item will determine if HOST resources in the selected compartment will be discovered automatically.

Example Usage

resource "oci_stack_monitoring_config" "test_config" {
	#Required
	compartment_id = var.compartment_id
	config_type = var.config_config_type

	#Optional
	is_enabled = var.config_is_enabled
	resource_type = var.config_resource_type
	license = var.config_license
	defined_tags = {"foo-namespace.bar-key"= "value"}
	display_name = var.config_display_name
	freeform_tags = {"bar-key"= "value"}
}

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

Import

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

$ terraform import oci_stack_monitoring_config.test_config "id"