Copying an OMI Within One Region Using Cockpit
|Before you begin: If the OMI you want to copy does not belong to you, its owner must share it with you. For more information, see Modifying the Attributes of an OMI.|
- In the navigation panel of the IaaS section, click Compute > Outscale Machine Images.
- Click the OMI you want to copy.
The OMI is selected.
- Click Copy
The COPY OMI dialog box appears.
In the Name field, type the name for the OMI copy.This name must be unique and must contain between 3 and 128 Unicode characters.
Click Copy to validate.
The OMI is copied to your account.
If you copy a public OMI to your account, your copy is also public.
Copying an OMI Within One Region Using AWS CLI
|Before you begin: if the OMI you want to copy does not belong to you, its owner must share it with you. For more information, see Modifying the Attributes of an OMI.|
To copy an OMI to your account, use the copy-image command following this syntax:
This command contains the following attributes that you need to specify:
profile: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI.
source-region: The name of the Region where the source OMI is located.
source-image-id: The ID of the OMI copy.
name: The name for the copy of the OMI.
This name must be unique and can contain any Unicode character, with no length limit.
However, if you explicitly specify an empty string, the name of the source OMI is reused.
description: A description for the copy of the OMI (by default, the same description as the source OMI).This description can contain any Unicode character, with no length limit.
endpoint: The endpoint corresponding to the Region you want to send the request to.
The copy-image command returns the following element:
ImageId: The ID of the new OMI.