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
7
votes
3 answers

Rapid AWS autoscaling

How do you configure AWS autoscaling to scale up quickly? I've setup an AWS autoscaling group with an ELB. All is working well, except it takes several minutes before the new instances are added and are online. I came across the following in a post…
waigani
  • 3,570
  • 5
  • 46
  • 71
6
votes
2 answers

Why is an AMI tied to a region on ec2?

I understand that when I launch an instance on ec2, that the instance has to be located on a particular data center, and that after launching you can't change that. I also understand that an AMI is created from an instance. But what I dont…
citizen conn
  • 15,300
  • 3
  • 58
  • 80
6
votes
4 answers

Unable to connect to EC2 Linux instance from Windows 10 CMD using ssh

I have a running EC2 instance that is running Linux OS(Amazon Linux AMI release 2018.03) on it. Given that Windows 10 has SSH client available in the command prompt, I was trying to SSH into my EC2 instance using the SSH private key(.pem file)…
DockYard
  • 989
  • 2
  • 12
  • 29
6
votes
1 answer

How to create "Instance Store" AMI image of a Reserved Instance with no EBS

I have some micro instances with EBS volumes and from the ec2 console you can right click and create a AMI image of the whole system. But I bought some High-Memory Reserved Instances which had 500GB of storage so I installed a "Instance Store"…
user1025488
  • 221
  • 3
  • 11
6
votes
2 answers

How do I know when an Amazon EC2 operation is complete?

Besides polling, how can I tell when a long-running Amazon EC2 operation is complete? For example, using the CreateImage API function can take upwards of several minutes. Right now I'm doing this: // MAKE THE API CALL var createRequest = new…
David Rubin
  • 1,610
  • 1
  • 17
  • 28
5
votes
0 answers

GPU Drivers not working on AWS Ubuntu Deep Learning AMI

It seems as though GPU drivers do not seem to work on the Deep Learning AMI (Ubuntu 180.04) g4dn.xlarge instances I have set up for the past few hours. nvidia-smi gives output: NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA…
zype
  • 69
  • 6
5
votes
1 answer

Trying to launch a Ubuntu 18.04 on a instance-store in AWS EC2

I'm trying to launch a Ubuntu 18.04 with a instance-stored device type on AWS. I search for Ubuntu 18.04 and find this one (ami-02e8efe84b4da2817): Okay, then I select the simplest instance type available, m5d.large: ... but when I launch the…
Avión
  • 7,963
  • 11
  • 64
  • 105
5
votes
3 answers

AWS EC2 Instance starting time

Sometimes the starting time of the instance takes more than 5 minutes. In this case, the Status Checks takes more than 4 minutes. How can I make the instance run less than a minute, including checking the status?
Dmitry Spodarets
  • 51
  • 1
  • 1
  • 2
5
votes
2 answers

AWS permissions required to copy and encrypt AMI

I am trying to copy an AMI from one AWS account to another and encrypt it with a CMK in the target account. The key policy on the CMK is: { "Version": "2012-10-17", "Id": "key-default", "Statement": [ { "Effect": "Allow", …
smilin_stan
  • 1,693
  • 2
  • 28
  • 40
5
votes
1 answer

AWS EC2 - Attach Larger Volume with run-instances

I'm having difficulty launching an EC2 instance and increasing the size of the root partition in a single command with aws ec2 run-instances: aws ec2 run-instances \ --image-id ami-0b33d91d \ --count 1 \ --instance-type m3.2xlarge \ --key-name…
tom-g
  • 115
  • 2
  • 10
5
votes
1 answer

Spark: How to increase drive size in slaves

How do I start a cluster with slaves that each have 100GB drive. ./spark-ec2 -k xx -i xx.pem -s 1 --hadoop-major-version=yarn --region=us-east-1 \ --zone=us-east-1b --spark-version=1.6.1 \ --vpc-id=vpc-xx --subnet-id=subnet-xx --ami=ami-yyyyyy \ …
Mohamed Taher Alrefaie
  • 15,698
  • 9
  • 48
  • 66
5
votes
0 answers

Problems trying to ssh to AWS EC2 instance

I've been using an EC2 server with LAMP for a few months now and all of a sudden I can't connect to it via ssh. I run the same command on Cygwin I've been running since I've started working with it, which is: ssh -i ./Desktop/keys/teste.pem…
Gabriel Rebello
  • 1,077
  • 1
  • 11
  • 17
5
votes
4 answers

Choose a Free tier Amazon Machine Image (AMI) using EC2 command line tools

Is there any way to query for free tier AMI ID's using EC2 CLI tools?
karthik101
  • 1,619
  • 4
  • 17
  • 23
5
votes
2 answers

Is there anyway to move AWS infrastructure from one region to another?

I have, EC2 x 8 AMIs x 2 RDS x 1 ELBs x 2 SG (security Groups) x 8 VPCs x 1 in Tokyo region. But I would like to move my entire setup to Oregon. Is there any tool I can utilise to do this? By mistake this question has "Move" in it. But I am…
TeaCupApp
  • 11,316
  • 18
  • 70
  • 150
5
votes
1 answer

Unable to setup cron-job on Amazon EC2

I have an Amazon EC2 instance (Ubuntu Server 13.04 - 64 bit [ami-bf1d8a8f]) running my website. I need to setup a Cron Job to get an email alert everyday. Does anyone have any advise or possible solutions? Thanks for your time.
user1491022
  • 171
  • 2
  • 3
  • 10
1 2
3
18 19