Attaching an Instance to a Lifecycle Environment
Add an instance to a lifecycle environment to associate it with a lifecycle stage in OS Management Hub.
When attaching an instance to a lifecycle stage, the service:
- Detaches previously attached software sources from the instance.
- Attaches the versioned custom software source associated with the lifecycle stage to the instance.
- Installs all the packages and modules in the attached versioned custom software source to the instance.
If the lifecycle stage doesn't yet have a versioned custom software source promoted to it, no changes are made to the instance. However, you can no longer manage the instance as standalone (such as updating an instance). At the next promotion of a versioned source, the service will attach it to all members of the stage and install all its content.
Use the oci os-management-hub lifecycle-stage attach-managed-instance command and required parameters to attach a managed instance to a lifecycle stage.
oci os-management-hub lifecycle-stage attach-managed-instance --stage-id ocid --managed-instance-details instance.json [OPTIONS]
For a complete list of flags and variable options for CLI commands, see the Command Line Reference.
Run the AttachManagedInstancesToLifecycleStage operation to attach a managed instance to a lifecycle stage.