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
215
votes
19 answers

How to see all running Amazon EC2 instances across all regions?

I switch instances between different regions frequently and sometimes I forget to turn off my running instance from a different region. I couldn't find any way to see all the running instances on Amazon console. Is there any way to display all the…
GorvGoyl
  • 42,508
  • 29
  • 229
  • 225
95
votes
3 answers

Creating AMI takes so long

I'm creating an AMI for a server with 100G files. It's been like an hour and it's still not finished. (The AMI still says pending) Is there something wrong with it? What should I do?
jackhao
  • 3,457
  • 3
  • 22
  • 43
88
votes
6 answers

You may not specify a referenced group id for an existing IPv4 CIDR rule. prompt when editing the Inbound rule in AWS Security Group

In AWS EC2, I start a Classical Load Balancer in front of EC2 instance (security group of EC2 instance is launch-wizard-3). I want to change the inbound rule of Security Group of EC2 instance . A security group for Classical Load Balancer (its name…
60
votes
8 answers

EC2 instance on Amazon and I am greeted with "No space left on the disk"

I have installed Amazon EC2 fedora instance and copying the files from one location to another. But I am greeted with " No space left on the disk". I did df -f. with output: Filesystem Size Used Avail Use% Mounted on /dev/sda1 …
onkar
  • 1,149
  • 4
  • 12
  • 14
55
votes
2 answers

How to fire EC2 instances and upload/run a startup script on each of them?

I want to automate the launch of a set of Linux EC2 instances. Basically, I want to write a script/program that would : Instantiate N occurrences of a given AMI of mine. For each started instance, it would upload a customized script and let the…
Serge Wautier
  • 21,494
  • 13
  • 69
  • 110
45
votes
2 answers

Convert Amazon EC2 AMI to Virtual or Vagrant box

I'd like to copy the disk image of a running EC2 instance (grab the AMI) and import it into virtual box or eventually have it run using Vagrant. I saw that packer (http://www.packer.io/) allows you to create AMI's and corresponding Vagrant boxes to…
Justin W.
  • 908
  • 1
  • 10
  • 9
40
votes
3 answers

Download an Amazon EC2 AMI?

I would like to download a public Amazon EC2 AMI, such as this one (Ubuntu Lucid), so that I can programmatically extract its contents. How do I do this? I suspect there is an S3 address somewhere? This blog post looks like it once described this…
AndyL
  • 14,302
  • 14
  • 43
  • 70
31
votes
7 answers

vsftpd error Listing Directories

I installed vsftpd on amazon ec2 with fedora instance and it is the latest version but I am getting the error: In CuteFTP: COMMAND:> PASV 227 Entering Passive Mode (192,168,10,46,14,20) COMMAND:> LIST ERROR:> Can’t connect to remote server. Socket…
onkar
  • 1,149
  • 4
  • 12
  • 14
30
votes
6 answers

Amazon EC2 Instance - How to find SQL Server Password

I have created an Amazon EC2 Instance that provides Windows Server 2008 with SQL Sever 2008 pre-installed. Now in order to use the SQL Server for creating databases, or restoring backups of the databases that I have on my local machine, I need the…
Prashant
  • 937
  • 1
  • 10
  • 23
30
votes
4 answers

Create New EC2 Instance with Custom ISO

I'm using Switchvox, an Asterisk PBX and I'd like to host it on EC2. Digium Switchvox provides an ISO which contains everything needed to host the pbx server: OS, software, etc. It's basically an image of the server. How do I instantiate a new EC2…
doremi
  • 14,921
  • 30
  • 93
  • 148
26
votes
5 answers

Can I make an AMI from a running instance that uses instance-store as its root device?

Or is it absolutely necessary to have an EBS backed storage? Does anyone have manuals/Howtos? I am following the manual given on this site.
theTuxRacer
  • 13,709
  • 7
  • 42
  • 59
24
votes
6 answers

How to configure direct http access to EC2 instance?

This is a very basic Amazon EC2 question, but I'm stumped so here goes. I want to launch an Amazon EC2 instance and allow access to HTTP on ports 80 and 8888 from anywhere. So far I can't even allow the instance to connect to on those ports…
Aaron Watters
  • 2,784
  • 3
  • 23
  • 37
24
votes
7 answers

Error registering: NoCredentialProviders: no valid providers in chain ECS agent error

Im trying to use EC2 Container service. Im using terraform for creating it. I have defined a ecs cluster, autoscaling group, launch configuration. All seems to work. Except one thing. The ec2 instances are creating, but they are not register in the…
Aldarund
  • 17,312
  • 5
  • 73
  • 104
23
votes
3 answers

How to pass environment variables when programmatically starting a new Amazon EC2 from image?

I am using AWS Java API RunInstance() to start a new EC2 instance from my custom AMI image. How do I pass environment variables to the new EC2 INSTANCE such as database url, AWS credentials etc. ?
user193116
  • 3,498
  • 6
  • 39
  • 58
19
votes
3 answers

AWS EIP Limit Increase

I understand that I get 5 EIP per region and if I need more I need to request service limit increase. My question is how many can I get after service limit increase? Is it possible to get 50 EIP? Please note that the DNS IP that AWS provides is not…
indichimp
  • 1,152
  • 2
  • 13
  • 22
1
2 3
18 19