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

How do I save an AMI to a S3 bucket?

I've created an AMI(EBS AMI) using the Amazon AWS console. That AMI has 2 snapshots attached to it. Now I want to backup that AMI to a S3 bucket. Is this possible? I actually need to do this to be able to then move that AMI to a bucket in a…
user1064446
  • 151
  • 1
  • 1
  • 3
15
votes
5 answers

msg: No handler was ready to authenticate. 1 handlers were checked. ['HmacAuthV4Handler'] Check your credentials

So I am trying to run ansible on my ec2 instances on aws, for the first time on a fresh instance, but every time I try to run a play I can't get around this error message: PLAY…
Alex Cohen
  • 5,596
  • 16
  • 54
  • 104
14
votes
1 answer

AWS - EC2 instances not showing up in console

I am trying to set up mongodb on and EC2 instance configured for EBS. I am following this MongoDB walkthrough. I created a new instance with the ec2 command line tool: ec2-run-instances ami-05355a6c -t m1.large -b "/dev/xvdf=:200:false:io1:1000" -b…
jordan
  • 9,570
  • 9
  • 43
  • 78
12
votes
1 answer

/var/log/cloud-init-output.log is not present on RHEL 7.5

I've got a custom hardended RHEL 7.5 custom AMI. I want to use user data to complete some deploy time configuration. I've already ensured that /var/lib/cloud/* is removed before I create the AMI. These are the contents of my user data: echo "My…
Josh Kodroff
  • 27,301
  • 27
  • 95
  • 148
12
votes
2 answers

If i Stop an Amazon EC2 instance, is this saved?

If I stop an EC2 instance, rather than terminate, will this image be saved in my account and be available to be used at a later stage? ..as I noticed terminated instances eventually dissappear, would a stopped instance be available to boot up and…
easyjo
  • 734
  • 6
  • 16
9
votes
1 answer

AWS EC2 Instance stopping right after start using boto3

Using boto3 run_instances The instance is stopping after 30 sec by itself and the State transition reason in the console shows: Client.InstanceInitiatedShutdown: Instance initiated shutdown What might be the issue?
Dmitry R
  • 2,956
  • 4
  • 25
  • 45
9
votes
1 answer

How to avoid GRUB errors after running apt-get upgrade - Ubuntu

I'm running ubuntu 14.04 on an EC2 After running apt-get upgrade I'm prompted with a screen that asks me to reinstall GRUB boot loader The GRUB boot loader was previously installed to a disk that is no longer present, or whose unique identifier…
Ofer Velich
  • 1,959
  • 4
  • 19
  • 24
9
votes
2 answers

Make exits with "Error 2" when trying to install gcc-4.8.1

I'm trying to install gcc-4.8.1 on an AWS ec2 "Other Linux" distribution. I downloaded gcc-4.6.2.tar.gz and then followed these instructions under the 'Configuration' heading from http://gcc.gnu.org/wiki/InstallingGCC (modified for 4.8.1 instead of…
MattG
  • 1,416
  • 2
  • 13
  • 31
9
votes
8 answers

Cannot change upload_max_filesize or post_max_size in php.ini

Bear in mind, I am no sysadmin, I am just a developer. I cannot find anyone with the exact problem as me, just similar, and none of their "fixes" seem to work. I am currently running an Amazon EC2 instance running. CentOS 6.2 Nginx 1.2.2 PHP 5.3.16…
Matt Edmonston
  • 151
  • 1
  • 2
  • 8
8
votes
1 answer

What's AMI ImageType?

There is a image-type in describe-images filter, and an ImageType in response, however no information about what it stands for, and cannot find any information by googling. There are three types: machine, kernel, ramdisk, what do they mean?
Xilang
  • 1,513
  • 3
  • 18
  • 36
7
votes
3 answers

How can I use/install "make" on the Amazon Linux AMI for EC2?

I'm a new user of Amazon EC2. I want to compile the pptpd package on EC2, but receive the following error: [root@ip-10-112-xxx-xxx /]# /var/tmp/rpm-tmp.2eILT0: line 58: /usr/bin/make: No such file or directory I searched the entire root directory…
ciphor
  • 8,018
  • 11
  • 53
  • 70
7
votes
1 answer

Adding a service startup script for Amazon linux AMI

I am using an Amazon Linux AMI and doing some custom modifications(added an axis2server, etc) on it and saving it as a new AMI. Now what I want to do is when the AMI boots up, start up axis2server(ie.axis2server should automatically start when the…
user915745
  • 163
  • 2
  • 2
  • 9
7
votes
2 answers

Where does packer store the private key?

From ubuntu shell I ran below command, to talk to aws platform, to customise amazon ami(ami-9abea4fb): $ packer build -debug template.packer Debug mode enabled. Builds will not be parallelized. amazon-ebs output will be in this color. ==>…
overexchange
  • 15,768
  • 30
  • 152
  • 347
7
votes
1 answer

How to format and mount an ephemeral disk with Terraform?

I'm in the process of writing Packer and Terraform code to create an immutable infra on aws. However, it does not seem very straightforward to install ext4 on a disk and mount it. The steps seem simple: Creating the ami with packer on t2.micro that…
Evert
  • 298
  • 3
  • 11
7
votes
4 answers

AWS EC2 apache log file location on AMI

I'm learning about AWS and EC2. I set up a AMI linux box that is running apache and mysql setup from yum. It was working for a bit, but now its flatlined. This is strange, so I thought to go check the logs. I'm moving around via a putty terminal and…
usumoio
  • 3,500
  • 6
  • 31
  • 57
1
2
3
18 19