oci_adm_remediation_recipe

This resource provides the Remediation Recipe resource in Oracle Cloud Infrastructure Adm service.

Creates a new Remediation Recipe.

Example Usage

resource "oci_adm_remediation_recipe" "test_remediation_recipe" {
	#Required
	compartment_id = var.compartment_id
	detect_configuration {

		#Optional
		exclusions = var.remediation_recipe_detect_configuration_exclusions
		max_permissible_cvss_v2score = var.remediation_recipe_detect_configuration_max_permissible_cvss_v2score
		max_permissible_cvss_v3score = var.remediation_recipe_detect_configuration_max_permissible_cvss_v3score
		max_permissible_severity = var.remediation_recipe_detect_configuration_max_permissible_severity
		upgrade_policy = var.remediation_recipe_detect_configuration_upgrade_policy
	}
	is_run_triggered_on_kb_change = var.remediation_recipe_is_run_triggered_on_kb_change
	knowledge_base_id = oci_adm_knowledge_base.test_knowledge_base.id
	network_configuration {
		#Required
		subnet_id = oci_core_subnet.test_subnet.id

		#Optional
		nsg_ids = var.remediation_recipe_network_configuration_nsg_ids
	}
	scm_configuration {
		#Required
		branch = var.remediation_recipe_scm_configuration_branch
		is_automerge_enabled = var.remediation_recipe_scm_configuration_is_automerge_enabled
		scm_type = var.remediation_recipe_scm_configuration_scm_type

		#Optional
		build_file_location = var.remediation_recipe_scm_configuration_build_file_location
		external_scm_type = var.remediation_recipe_scm_configuration_external_scm_type
		oci_code_repository_id = oci_artifacts_repository.test_repository.id
		pat_secret_id = oci_vault_secret.test_secret.id
		repository_url = var.remediation_recipe_scm_configuration_repository_url
		username = var.remediation_recipe_scm_configuration_username
	}
	verify_configuration {
		#Required
		build_service_type = var.remediation_recipe_verify_configuration_build_service_type

		#Optional
		additional_parameters = var.remediation_recipe_verify_configuration_additional_parameters
		jenkins_url = var.remediation_recipe_verify_configuration_jenkins_url
		job_name = oci_database_migration_job.test_job.name
		pat_secret_id = oci_vault_secret.test_secret.id
		pipeline_id = oci_datascience_pipeline.test_pipeline.id
		repository_url = var.remediation_recipe_verify_configuration_repository_url
		trigger_secret_id = oci_vault_secret.test_secret.id
		username = var.remediation_recipe_verify_configuration_username
		workflow_name = var.remediation_recipe_verify_configuration_workflow_name
	}

	#Optional
	defined_tags = {"foo-namespace.bar-key"= "value"}
	display_name = var.remediation_recipe_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 Remediation Recipe * update - (Defaults to 20 minutes), when updating the Remediation Recipe * delete - (Defaults to 20 minutes), when destroying the Remediation Recipe

Import

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

$ terraform import oci_adm_remediation_recipe.test_remediation_recipe "id"