oci_stack_monitoring_monitored_resources_associate_monitored_resource

This resource provides the Monitored Resources Associate Monitored Resource resource in Oracle Cloud Infrastructure Stack Monitoring service.

Create an association between two monitored resources. Associations can be created between resources from different compartments as long they are in same tenancy. User should have required access in both the compartments.

Example Usage

resource "oci_stack_monitoring_monitored_resources_associate_monitored_resource" "test_monitored_resources_associate_monitored_resource" {
	#Required
	association_type = var.monitored_resources_associate_monitored_resource_association_type
	compartment_id = var.compartment_id
	destination_resource_id = oci_stack_monitoring_destination_resource.test_destination_resource.id
	source_resource_id = oci_stack_monitoring_source_resource.test_source_resource.id
}

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

Import

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

$ terraform import oci_stack_monitoring_monitored_resources_associate_monitored_resource.test_monitored_resources_associate_monitored_resource "id"