Wednesday 12 November 2014

Create An Ebs Ami

When using an Amazon EC2 cloud computing server, you can create an Amazon Machine Image (AMI) backed onto your Elastic Block Store (EBS). AMIs are preconfigured operating systems and environments used to simulate virtual machines on your cloud-based EC2 network. If you want to create an EMS AMI, you must connect to the Amazon EC2 server via the command line, having already set up an SSH key (for detailed instructions on do so, see the link in the Resources section).


Instructions


1. Open your secure shell (SSH) client, type "ssh KEY root@IP" (replacing "KEY" with your SSH key, and "IP" with your server's IP address). Press "Enter." This connects you to your server via the secure shell and logs in you into the command line.


2. Type "ec2-create-volume," and press "Enter" to create a volume. Type "ec2-attach-volume" and press "Enter" to attach the volume.


3. Type "ec2-create-image -n IMAGENAME INSTANCE-ID" (without quotation marks). Replace "IMAGENAME" with the name of your chosen image, and replace "INSTANCE-ID" with the instance ID. Press "Enter" to create this EBS AMI.


4. Type "ec2-describe-images -o self" and press "Enter" to test whether you have created the image correctly.

Tags: command line, Enter create, press Enter, secure shell, volume Type, with your