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
1
vote
2 answers

EC2 - Create AMI - Cannot connect to new instance

I am experiencing difficulty trying to launch a AMI from an EBS volume. I am basically trying to launch another instance of a Linux (i386) based AMI that I have already configured the way I want. I have followed many guides for the past week. So…
David Gill
  • 8,411
  • 5
  • 19
  • 21
1
vote
2 answers

Key pair for AWS EC2 launching from own AMI

Do I need to provide the key pair to access the EC2 instance when the instance is being launched from an AMI which was taken from an instance that already contained the same key pair?
Mostafiz Rahman
  • 8,169
  • 7
  • 57
  • 74
1
vote
1 answer

VM import to EC2 with EFI partition

I'm trying to import Hyper-V image to AWS EC2 using aws ec2 import-image command and faced with issue. Googling this I found that EC2 Import supporting VHDX but not supporting UEFI. I'm not very familiar with this partitions types. Maybe I could…
user3428
  • 37
  • 1
  • 8
1
vote
3 answers

Amazon EC2- user-data through the AWS console doesn't work

From the Amazon EC2 console (or even if I do it through API tools on a box using a file), I paste: #!/bin/bash -ex # tell the world what we've done! echo 'thisisthetoken' > /home/ec2-user/testuserdata Into the user-data text box. When the…
user375566
1
vote
2 answers

Enable SSH with a password instead of pem key

I am launching an EC2 instance using cloudformation. I want to enable SSH with a password instead of pem key for that instance. I am able to write the startup script (user data) to do this, but I have set the static password 'pass123' for user…
1
vote
1 answer

Error while installing R package in AWS

I am using a ubuntu AMI in my AWS and have launched a R studio server. I am finding trouble in installing the R packages. Whenever I try to install the packages I get an error > Installing package into >…
Rohi
  • 385
  • 2
  • 3
  • 15
1
vote
2 answers

Optimize Big EBS Volumes Initialization (Warm-up)

I'm baking an AMI from a database server which has 300GB root volume. 80% of the volume is in use. Reason behind baking the AMI is that we need multiple new instances with the exact same data everyday. AMI is the appropriate solution because the…
Ashish Bista
  • 4,533
  • 1
  • 18
  • 25
1
vote
0 answers

Export EC2 AMI into VMDK

Am trying to export my AMI into VMDK file to use on local with VMware. looking at the doc, I only found this one: http://docs.aws.amazon.com/vm-import/latest/userguide/vmexport.html But, there restrictions. Because the AMI was created using Ubuntu…
tensor
  • 3,088
  • 8
  • 37
  • 71
1
vote
0 answers

cfn Cluster custom AMI creation

I am trying to use custom AMI (private) with cfn cluster framework. I have created the AMI but every time I assign the AMI ID in config file (.cfncluster/config) the "Status: cfncluster-Belle - ROLLBACK_IN_PROGRESS" occurs. How can I use my own…
1
vote
1 answer

Creating a CloudFormation Stack from a Existing AMI Snapshot

I am very new to cloudformation, so excuse my ignorance. I have been trying to create a cloudformation template form a existing linux AMI snapshot as a basis for automating my current resources and eventually have my entire infrastructure running on…
Luis Ayala
  • 13
  • 4
1
vote
1 answer

ssh authentication fails to aws ec2 instance launched from ami created with boto3

I have an existing AWS Ubuntu EC2 instance (instance_1) with remote ssh access via a public IP address, using my own private/public keys. I create an AMI from this instance using the console, and then launch a new EC2 instance (instance_2) using…
JCvdW
  • 39
  • 5
1
vote
1 answer

Good EC2 Image with memcache and php

I'm planning to use the following setup on EC2: PHP (recent version) plus memcached on an ec2 instance, and using Amazon's RDS service for the MySQL database. Is there a recommended instance that has PHP and Memcached installed with the most often…
PeterV
  • 2,792
  • 3
  • 20
  • 22
1
vote
0 answers

Cannot SSH nor connect to public IP of Amazon ec2

I had a site running fine on an ec2 instance a few months ago. I decided recently to begin work on that site and I can no longer ssh into the instance. I would get a series of timeouts or connection refusals with debug logs…
Alex Bollbach
  • 4,370
  • 9
  • 32
  • 80
1
vote
1 answer

ansible ec2 ami module not working time out

I'm trying to implement a playbook dealing with Amazon EC2 . I came to the part where I want to create a new image( I used a role for that ), here is what I did: --- - debug: msg="{{ id_image }}" - ec2_ami: instance_id: "{{ id_image }}" …
another geek
  • 361
  • 4
  • 15
1
vote
1 answer

JSP on tomcat https port displaying incorrectly

I have a tomcat 8 server with http and https ports. All the jsp files run fine on http, but on https the jsp tags are getting output to the page and I'm seeing something like this. <%@ page language="java" pageEncoding="UTF-8"…
Slayer0248
  • 1,231
  • 3
  • 15
  • 26