oci_apm_config_config

This resource provides the Config resource in Oracle Cloud Infrastructure Apm Config service.

Creates a new configuration item.

Example Usage

resource "oci_apm_config_config" "test_config" {
	#Required
	apm_domain_id = oci_apm_apm_domain.test_apm_domain.id
	config_type = var.config_config_type

	#Optional
	agent_version = var.config_agent_version
	attach_install_dir = var.config_attach_install_dir
	config {

		#Optional
		config_map {

			#Optional
			file_name = var.config_config_config_map_file_name
			body = var.config_config_config_map_body
			content_type = var.config_config_config_map_content_type
		}
	}
	defined_tags = {"foo-namespace.bar-key"= "value"}
	description = var.config_description
	dimensions {

		#Optional
		name = var.config_dimensions_name
		value_source = var.config_dimensions_value_source
	}
	display_name = var.config_display_name
	filter_id = oci_apm_config_filter.test_filter.id
	filter_text = var.config_filter_text
	freeform_tags = {"bar-key"= "value"}
	group = var.config_group
	management_agent_id = oci_management_agent_management_agent.test_management_agent.id
	match_agents_with_attribute_value = var.config_match_agents_with_attribute_value
	metrics {

		#Optional
		description = var.config_metrics_description
		name = var.config_metrics_name
		unit = var.config_metrics_unit
		value_source = var.config_metrics_value_source
	}
	namespace = var.config_namespace
	opc_dry_run = var.config_opc_dry_run
	options = var.config_options
	overrides {

		#Optional
		override_list {

			#Optional
			agent_filter = var.config_overrides_override_list_agent_filter
			override_map = var.config_overrides_override_list_override_map
		}
	}
	process_filter = var.config_process_filter
	rules {

		#Optional
		display_name = var.config_rules_display_name
		filter_text = var.config_rules_filter_text
		is_apply_to_error_spans = var.config_rules_is_apply_to_error_spans
		is_enabled = var.config_rules_is_enabled
		priority = var.config_rules_priority
		satisfied_response_time = var.config_rules_satisfied_response_time
		tolerating_response_time = var.config_rules_tolerating_response_time
	}
	run_as_user = var.config_run_as_user
	service_name = oci_announcements_service_service.test_service.name
}

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_apm_config_config.test_config "configs/{configId}/apmDomainId/{apmDomainId}"