Instance Store-backed Ami creation steps

Source: Internet
Author: User
Tags tmp folder

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.