Questions tagged [ec2-ami]

For questions relating to virtual machine images (Amazon Machine Image) on Amazon's EC2 infrastructure.

Amazon Web Services Elastic Compute Cloud (hence, EC2) provides scalable and resizeable a la carte compute services in regions around the world. One of their goals is to "make web-scale cloud computing easier for developers".

Ec2 provides access to a large variety of compute services, ranging from a 'free tier' of smaller 'instance' types, to extremely powerful and specialized systems.

Across AWS EC2, an AMI is an Amazon Machine Image, which provides all of the information needed to launch a given machine. An AMI contains a template for the root volume of the instance (or VM), the permissions for where and how it is launched, and any block device (storage) mappings.

Any machine, including pre-configured machines of your own, can be imaged into an AMI which is then re-lauched, modified, or the like. This can be extremely useful for taking a snapshot of a machine and then redeploying it at a later time, or in a different location or availability zone.

283 questions
3
votes
3 answers

How to find EC2 instances running a certain AMI in order to delete both AMI and EC2 instances?

I have launched several EC2 instances with my custom AMI. Now I want to completely delete the AMI so firstly I need to terminate all instances running that AMI. Is it possible to do with AWS's API? For down-voters: Recommended cleanup process from…
wz366
  • 2,840
  • 6
  • 25
  • 34
3
votes
1 answer

How to find the same spec AMI in different regions?

as title, while I create CFN template, I always check EC2 console for AMI id in different regions. these ids belong to the same spec image, ex: all of them are "ubuntu 12.04 64 bit", but in various regions is there any quick method to check this…
nosus hsu
  • 33
  • 1
  • 5
3
votes
1 answer

how to make a reusable AMI of a system that is already a member of a windows domain

I have a "golden image" server that is set up, all packages installed and updated, and its joined to a windows domain. We have to join the system to the domain first, because some of the packages are dependent upon domain resource. I've taken an…
3z33etm
  • 1,083
  • 3
  • 15
  • 23
3
votes
1 answer

"Server refused our key" issue on connecting to Amazon Linux EC2 AWS image from Putty

I know this question has been asked and answered before, but I can't make it work although I triple-checked all the steps both in Amazon doc and here on StackOverflow. So here we are: yesterday I launched an Amazon EC2 instance, with an Amazon Linux…
nicolasdaudin
  • 302
  • 1
  • 4
  • 15
3
votes
1 answer

amazon ec2 sudoers file - ubuntu user asking for password

I am VERY new to EC2 here, and I have set up everything under the free tier today. So , I loginto my ec2 using (assuming default user ubuntu): ssh -i ~/.ssh/mykeypaid.pem ubuntu@ Now, I have edited my sudoers file as follows: ubuntu…
AJW
  • 5,569
  • 10
  • 44
  • 57
3
votes
1 answer

How to properly configure the Amazon EC2 AMI for 'hadoop-ec2'?

I am trying to launch an instance on Amazon EC2. I have researched this problem extensively, but I have not found any helpful information. When I run the command hadoop-ec2 launch-cluster mycluster 2, I receive the following error message: Starting…
3
votes
1 answer

Is it possible to create an ami from an openstack image?

I'm creating an image from a running instance in OpenStack nova image-create and i'm just wondering,can this image be uploaded to ec2? Or do i need to create an ami from it? Can someone guide me on how to go about this?
Pavan
  • 658
  • 2
  • 7
  • 28
3
votes
1 answer

linux cli tab autocomplete broken on ec2 instance

When i made 2 fresh ubuntu x64 instances, one had tab autocomplete working. The other just throws up spaces when tabbing. Also the second instance wont let me use up and down arrow keys to cycle through history. Does anyone know how to fix this.…
tven
  • 547
  • 6
  • 18
3
votes
1 answer

AWS EC2 keep refusing my private SSH 2 key

Already looked for a solution but nothing seems to be helpfull, I'm doing everything that is meant to be made and my instance keeps returning me the message "Server refused our key". Here's what I've been doing: 1) Create Instance; 2) Download the…
user1835946
3
votes
2 answers

PHP extensions dir with YUM

I've installed PHP on a Linux machine but can't seem to find the 'modules' directory from PHP. On Mac with MAMP installed, this folder is located in ~/Applications/MAMP/bin/php/php5.3.6/, but I can't figure out where this folder is installed on…
ndequeker
  • 7,932
  • 7
  • 61
  • 93
3
votes
2 answers

Getting AWS AMI properties

I have a list of AMIs, which I got by creating a boto connection: conn_eu = boto.ec2.connect_to_region('eu-west-1') images = conn_eu.get_all_images(owners=['me']) I want to be able to see the properties of these AMIs. Properties such as their…
AmirHBP
  • 267
  • 1
  • 4
  • 13
3
votes
1 answer

Can't add image to AWS Autoscale launch config

I'm using the following command to set up the AWS launch config: as-create-launch-config test1autoscale --image-id ami-xxxx --instance-type m1.small where ami-xxxx is the image id that I got from my instance via the web console. I get the following…
waigani
  • 3,570
  • 5
  • 46
  • 71
3
votes
1 answer

Is there any kind of a 'default' AMI ID across all EC2 regions?

The ec2-run-instances command needs an AMI ID and the ID is different across all regions. Is there any way to specify that I need an AMI that will be suitable for region x / zone y and instance_type z? In other words I need a way to use some…
shantanuo
  • 31,689
  • 78
  • 245
  • 403
2
votes
2 answers

Unable to connect to my newly created Ubuntu AMI

I have been trying to log in to my newly created Ubuntu oneiric AMI at EC2 but it always fails saying connection timed out. I have tried it using AWS Management console as well as command line tools. I have searched enough on Google and Server…
ahsan_cse2004
  • 182
  • 4
  • 16
2
votes
1 answer

Amazon AWS EC2 SSH Login Through Putty on Windows

Ok, so I've read the tutorial here: http://www.powercram.com/2009/07/connecting-to-aws-ec2-instance-linux.html I created a keypair on Ec2, and ran it through puttygen, and tried to login via putty. I tried logging into the ip of the site, the url of…
Hoopdady
  • 2,296
  • 3
  • 25
  • 40