AMI Builder (instance-store) Type: amazon-instance. The amazon-instance Packer builder is able to create Amazon AMIs backed by instance storage as the root device. How To Bundle and Upload an Amazon Machine Image : Hennepin Technical College. This guide will provide all necessary steps on how to bundle, and upload an AMI. For more information about Amazon EC2 read here. Prerequisites. Internet connection. S3 and EC2 services with Amazon Web Services (AWS). Amazaon Access Key ID. Amazon Secret Access Key. Amazon Account Number. Amazon X. 5. 09 Certificate. GB free hard drive space. Setup Amazon environment variables, keys and cert's. Now it is time that we extract our account details and certificates from the amazon web site. Create ~/. ec. 2 directory and save there your certificates. The steps involved are described . Navigate to GET STARTED - > Setting up an Account. If you have private key and certificate saved, we can set environmental variable, so we do not have to refer to them with a full path when using ami and api tools. EC2. Set environment variable for java and confirm that java is installed. JAVA. However, if you have plenty time you may try !
Creating a new EC2 AMI from within VMware or from VMDK. Setup EC2 AMI Tools from Amazon S3. This part of this tutorial will explain how to setup and use EC2 AMI Tools in order to bundle and upload new AMI. Install EC2 AMI Tools. NOTE: Use sudo or switch to root ! Bundle new AMI. All is set up and we are ready to bundle our new Debian AMI. Upload AMI files. Previously, bundle image ami tool will create files in /tmp directory by default . This is also the place where your XML manifest for your new AMI is located. Now upload AMI: NOTE: If bucket does not exist it will be created! Moreover, you MUST choose your own name for the bucket. Register AMI with API tools. At this stage we are ready to register our new AMI. After registering, we will get AMI's id number. NOTE: For an Amazon API tools, the path to your amazon EC2 certificate and private key are automatically extracted from the environment variables defined earlier. Run AMI instance. Now that we have got a AMI's registered number, we can start it. Describe AMI instance. Well, AMi is running and we need to know some more information about it such as IP address or full domain name, use the instance number generated when starting AMI. Connecting to AMI with ssh. If this is not your fist AMI you probably already have your port 2. If not, run this command first before you attempt to connect to it. Once enabled, use shh command to connect to your new Debian ETCH AMI. IP- address or full- domain- name NOTE: We retrieved the full domain name previously with ec. Other useful EC2 commands. Console output. To see what is happening with our instance, we can use ec. ID. ec. 2- get- console- output. Shut down the Amazon EC2 instance. To shut down the Amazon EC2 instance use. AWS access ID> - r i. AWS access ID> - s < aws- secret- access- key>. Last updated by admin : 2. Building EBS Boot and S3 Based AMIs for EC2 with Ubuntu vmbuilder . This does not preclude you from also building an EBS boot AMI with the same image. For example, I add the runurl package from the Alestic PPA so that it is available for use in user- data scripts on first boot.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2017
Categories |