Questions tagged [amazon-ami]

Questions concerning Amazon Machine Images (AMI). An AMI is an image of an instance containing all the information about the configuration and the software that must be installed on the machine during the initialization.

Amazon Machine Images (AMI). An AMI is an image of an instance containing all the information about the configuration and the software that must be installed on the machine during the initialization.

An AMI defines the following parameters:

  • An operating system, an application server, and applications
  • A set of permissions that control which AWS accounts can use the AMI to launch instances
  • A block device mapping that specifies the volumes to attach to the instance when it's launched
885 questions
10
votes
3 answers

Running out of disk space in Amazon EC2, can't find what I am using my storage for

I am Running an AWS ami using a T2.large instance using the US East. I was trying to upload some data and I ran in the terminal: df -h and I got this result: Filesystem Size Used Avail Use% Mounted on udev 3.9G 0 3.9G 0%…
Derek Corcoran
  • 3,930
  • 2
  • 25
  • 54
9
votes
3 answers

Pre-configured EC2 VPN AMI

I have been google-ing around for the answer to this for that last hour or so but can't find anything on it. I would like to have pre-configured ami for AWS EC2 that will let me spin up an instance and ssh in and set user/pass for people to VPN…
JoshStrange
  • 1,121
  • 1
  • 7
  • 22
9
votes
3 answers

[AWS Lambda]: How to fix "version GLIBC 2.27 Not found"

I would like to deploy and test my Lambda function, but, every time I try to do that I am getting following error message: 2019-11-11 13:25:33 Mounting /tmp/tmphebm3s_4 as /var/task:ro,delegated inside runtime container /var/task/bin/inference:…
Stefan Radonjic
  • 1,449
  • 4
  • 19
  • 38
9
votes
1 answer

How to make EC2 user-data work on freshly built AMI, made with Packer

I can build AMI images just fine. But they've stopped working with EC2 User Data: There is user data: $ cat /tmp/user_data.sh #!/bin/bash touch /tmp/i_have_user_data /root/i_have_user_data And I can launch a plain Ubuntu image: aws ec2…
Julian Simpson
  • 607
  • 1
  • 5
  • 11
9
votes
3 answers

Customizing an Elastic Beanstalk AMI

I need to use on Elastic Beanstalk a Java application written for Glassfish server. Beacuse of Amazon doesn't let me choose an AMI with Glassfish, I choosed one with Tomcat and i modified my application to work properly on Tomcat. Now, I've seen I…
8
votes
1 answer

AWS: error while creating AMI from Ubuntu - error initramfs/initrd

I've created a simple VM in VirtualBox and installed Ubuntu, however, I am unable to import this to AWS and generate an AMI from it. Operating system: Ubuntu 20.04.4 LTS Kernel: Linux 5.4.0-104-generic I've followed the steps provided according to…
8
votes
1 answer

How to set locale in AWS AMI Linux Lambda?

I have a small script in python, that make use of locale to format a number from 1.000,00 to 1,000.00 import re, locale locale.setlocale(locale.LC_ALL, 'es_PE.UTF-8') locale.atof(number) Then when I run this in Lambda, I get this error message: …
Romel Gomez
  • 325
  • 2
  • 19
8
votes
4 answers

Amazon Launch Template - Updated AMI

I have started using Amazon's new Launch Templates and so far liking it however I just recently made an image from one of my instances, I then created a new version of the Launch template and used the new AMI. When updating my auto scaling group to…
Artisan
  • 1,974
  • 1
  • 18
  • 23
8
votes
4 answers

Cannot deregister AMI from AWS, "an error occurred attempting to deregister amis". Does anyone know the reason and provide a solution?

I am attempting to clear my snapshots and AMI from AWS account, to delete snapshots i understand one needs to de-register the AMIs. But when i try to de-register through console, i am given the below error. "an error occurred attempting to…
LakshayK
  • 162
  • 2
  • 8
8
votes
3 answers

What is the difference between Amazon AMI and EBS snapshot

My basic need is that I should be able to make new instance from my saved image for current running Centos with all settings. I am thinking of two options: Create the AMI from the any state Create the snap shots of EBS I am confused what is the…
user1958218
  • 1,571
  • 3
  • 18
  • 28
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
4 answers

Unable to install docker on AWS Linux AMI

I followed the steps to install docker on my EC2 instance which is based on Amazon AMI using the instructions from the official link - official docker installation on centos. I am getting the below error. $ sudo yum update ........ $ sudo yum…
zilcuanu
  • 3,451
  • 8
  • 52
  • 105
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
3 answers

How can I copy an AMI to another account using Packer?

I have two AWS Accounts: Test Account Prod Account I am creating an AMI using Packer in the Test Account and want to copy the AMI to the Prod Account after that. How can I use Packer to do that and also remove the actual AMI after the job is…
user6457056
7
votes
0 answers

Changes required to create AMI from OS disk EBS volume manually

I have a VMware VM whose OS raw disk is backed up to AWS S3. I can create AMI from the OS disk raw using import-image. I cannot use import-image everytime because it is extremely slow and because I am creating an application where you can backup…
Subbu
  • 2,063
  • 4
  • 29
  • 42
1 2
3
58 59