oci_cloud_migrations_migration_plan

This resource provides the Migration Plan resource in Oracle Cloud Infrastructure Cloud Migrations service.

Creates a migration plan.

Example Usage

resource "oci_cloud_migrations_migration_plan" "test_migration_plan" {
	#Required
	compartment_id = var.compartment_id
	display_name = var.migration_plan_display_name
	migration_id = oci_cloud_migrations_migration.test_migration.id

	#Optional
	defined_tags = {"foo-namespace.bar-key"= "value"}
	freeform_tags = {"bar-key"= "value"}
	source_migration_plan_id = oci_cloud_migrations_migration_plan.test_migration_plan.id
	strategies {
		#Required
		resource_type = var.migration_plan_strategies_resource_type
		strategy_type = var.migration_plan_strategies_strategy_type

		#Optional
		adjustment_multiplier = var.migration_plan_strategies_adjustment_multiplier
		metric_time_window = var.migration_plan_strategies_metric_time_window
		metric_type = var.migration_plan_strategies_metric_type
		percentile = var.migration_plan_strategies_percentile
	}
	target_environments {
		#Required
		subnet = var.migration_plan_target_environments_subnet
		target_environment_type = var.migration_plan_target_environments_target_environment_type
		vcn = var.migration_plan_target_environments_vcn

		#Optional
		availability_domain = var.migration_plan_target_environments_availability_domain
		dedicated_vm_host = var.migration_plan_target_environments_dedicated_vm_host
		fault_domain = var.migration_plan_target_environments_fault_domain
		ms_license = var.migration_plan_target_environments_ms_license
		preferred_shape_type = var.migration_plan_target_environments_preferred_shape_type
		target_compartment_id = oci_identity_compartment.test_compartment.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 Migration Plan * update - (Defaults to 20 minutes), when updating the Migration Plan * delete - (Defaults to 20 minutes), when destroying the Migration Plan

Import

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

$ terraform import oci_cloud_migrations_migration_plan.test_migration_plan "id"