oci_optimizer_profile

This resource provides the Profile resource in Oracle Cloud Infrastructure Optimizer service.

Creates a new profile.

Example Usage

resource "oci_optimizer_profile" "test_profile" {
	#Required
	compartment_id = var.compartment_id
	description = var.profile_description
	levels_configuration {

		#Optional
		items {

			#Optional
			level = var.profile_levels_configuration_items_level
			recommendation_id = oci_optimizer_recommendation.test_recommendation.id
		}
	}
	name = var.profile_name

	#Optional
	aggregation_interval_in_days = var.profile_aggregation_interval_in_days
	defined_tags = {"foo-namespace.bar-key"= "value"}
	freeform_tags = {"bar-key"= "value"}
	target_compartments {
		#Required
		items = var.profile_target_compartments_items
	}
	target_tags {
		#Required
		items {
			#Required
			tag_definition_name = var.profile_target_tags_items_tag_definition_name
			tag_namespace_name = oci_identity_tag_namespace.test_tag_namespace.name
			tag_value_type = var.profile_target_tags_items_tag_value_type

			#Optional
			tag_values = var.profile_target_tags_items_tag_values
		}
	}
}

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

Import

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

$ terraform import oci_optimizer_profile.test_profile "id"