Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance that is in
either the running or stopped state. For more information
about Amazon EBS-backed AMIs, go to Amazon EBS-Backed AMIs and
Instances.
![]() | Note |
|---|---|
If you customized your instance with ephemeral storage devices or additional EBS volumes besides the root device, the new AMI contains block device mapping information for those storage devices and volumes. When you then launch an instance from your new AMI, the instance automatically launches with the additional devices and volumes. |
| Name | Description | Required |
|---|---|---|
|
|
The ID of the instance. Type: String Default: None |
Yes |
|
|
A name for the new image you're creating. Type: String Default: None Constraints: 3-128 alphanumeric characters, parenthesis (()), commas (,), slashes (/), dashes (-), or underscores(_) |
Yes |
|
|
A description of the new image. Type: String Default: None Constraints: Up to 255 characters |
No |
|
|
By default this parameter is set to Type: Boolean Default: false |
No |
The elements in the following table come wrapped in a
CreateImageResponse structure.
| Name | Description |
|---|---|
|
|
The ID of the request. Type: xsd:string |
|
|
The ID of the AMI. Type: xsd:string |
This example creates an AMI from the i-10a64379 instance.
https://ec2.amazonaws.com/?Action=CreateImage &Description=Standard+Web+Server+v1.0 &InstanceId=i-10a64379 &Name=standard-web-server-v1.0 &AuthParams
<CreateImageResponse xmlns="http://ec2.amazonaws.com/doc/2010-08-31/"> <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> <imageId>ami-4fa54026</imageId> </CreateImageResponse>