Instance Store-backed Ami creation steps
One, Windows AMI
1. Select the instance store-backed Ami to create the instance.
2. Remote login instance for custom configuration.
3. Through the Web Console or command-line bundle instance (and automatically upload to S3).
- Console action path: Select Instances > Right-click the instance you want to bundle > select bundle Instance (Instance store AMI) in Actions-image
- Command-line command: bundle-instance (AWS CLI)
4. Register an AMI that has been uploaded to S3.
- Console action Path: Method One: Select Amis > Actions-register new AMI; method Two: Select bundle tasks > select Bundle task generated by previous bundle instance > click Register A S an AMI
- Command-line command: Register-image (AWS CLI)
See also:http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/Creating_InstanceStoreBacked_WinAMI.html
Second, the Linux AMI
1. Select the instance store-backed Ami to create the instance.
2. Prepare the following:
- Installing the AMI tool on an instance
- Installing the AWS CLI Tools on an instance
- Confirm or create a S3 bucket
- Confirm or create the authentication information: 1) The AWS Account ID;2) and the corresponding private key, 3) the access key ID of the AWS Access user and secret access key
- Remote login instance for custom configuration
3. Log in to the EC2 instance and use the following command to create the bundle's root volume:
Ec2-bundle-vol-k/tmp/cert/pk-hkzyktaig2ecmxyibh3hxv4zbexample.pem-c/tmp/cert/ Cert-hkzyktaig2ecmxyibh3hxv4zbexample.pem-u your_aws_account_id-r x86_64-e/tmp/cert--partition GPT
This command takes a few minutes to complete and generates bundles (Image.manifest.xml and several image.part.xx files) under the/tmp folder.
4. Upload the bundle to S3 using the following command:
Ec2-upload-bundle-b my-s3-bucket/bundle_folder/bundle_name-m/tmp/image.manifest.xml-a your_access_key_id-s your_ Secret_access_key
5. Register the image uploaded to S3 using the following command:
Ec2-register my-s3-bucket/bundle_folder/bundle_name/image.manifest.xml-n ami_name-o your_access_key_id-w your_ Secret_access_key--virtualization-type HVM
See also:http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-instance-store.html
Instance Store-backed Ami creation steps