oci_os_management_hub_lifecycle_stage_attach_managed_instances_management

This resource provides the Lifecycle Stage Attach Managed Instances Management resource in Oracle Cloud Infrastructure Os Management Hub service.

Attaches (adds) managed instances to a lifecycle stage. Once added, you can apply operations to all managed instances in the lifecycle stage.

Example Usage

resource "oci_os_management_hub_lifecycle_stage_attach_managed_instances_management" "test_lifecycle_stage_attach_managed_instances_management" {
	#Required
	lifecycle_stage_id = oci_os_management_hub_lifecycle_stage.test_lifecycle_stage.id

	#Required
	managed_instance_details {
		#Required
		managed_instances = var.lifecycle_stage_attach_managed_instances_management_managed_instance_details_managed_instances

		#Optional
		work_request_details {

			#Optional
			description = var.lifecycle_stage_attach_managed_instances_management_managed_instance_details_work_request_details_description
			display_name = var.lifecycle_stage_attach_managed_instances_management_managed_instance_details_work_request_details_display_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 Lifecycle Stage Attach Managed Instances Management * update - (Defaults to 20 minutes), when updating the Lifecycle Stage Attach Managed Instances Management * delete - (Defaults to 20 minutes), when destroying the Lifecycle Stage Attach Managed Instances Management

Import

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

$ terraform import oci_os_management_hub_lifecycle_stage_attach_managed_instances_management.test_lifecycle_stage_attach_managed_instances_management "id"