oci_logging_log_group

This resource provides the Log Group resource in Oracle Cloud Infrastructure Logging service.

Create a new log group with a unique display name. This call fails if the log group is already created with the same displayName in the compartment.

Example Usage

resource "oci_logging_log_group" "test_log_group" {
	#Required
	compartment_id = var.compartment_id
	display_name = var.log_group_display_name

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.log_group_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 Log Group * update - (Defaults to 20 minutes), when updating the Log Group * delete - (Defaults to 20 minutes), when destroying the Log Group

Import

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

$ terraform import oci_logging_log_group.test_log_group "id"