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
7
votes
1 answer

ASG can't launch instances anymore with encrypted EBS root volume

We have recently deployed a new application that uses an ASG configured to launch instances with encrypted EBS root volumes. We have plenty of existing applications that work using exactly this setup, but our new ASG refuses to launch instances. The…
sihil
  • 2,563
  • 1
  • 17
  • 24
7
votes
2 answers

List all AWS AMI names through CLI?

I want to write a script that prints out all the AMIs created before (or after) a certain date. However, I am really struggling to do this so any help is sincerely appreciated. I don't have much now, but this is what I have so far: aws ec2…
chew224
  • 481
  • 2
  • 6
  • 19
7
votes
2 answers

Issue when copy AMI owned by another account

I'm trying to copy an AMI from one account A but owned by another account B. I have previously built this AMI. The account A has launch permissions on the AMI, but when I copy I got this error message : Images from AWS Marketplace cannot be copied…
willyRG
  • 83
  • 1
  • 8
7
votes
4 answers

ERROR: Test failed: 400 (InvalidToken): The provided token is malformed or otherwise invalid

s3cmd was installed from epel-testing repo by running: yum --enablerepo epel-testing install s3cmd Then I invoked the configuration tool with s3cmd --configure but I got this error: Test access with supplied credentials? [Y/n] Please wait,…
quanta
  • 3,960
  • 4
  • 40
  • 75
7
votes
2 answers

How to run a GPU instance using Amazon EC2 Panel?

I would like to run a Ubuntu GPU instance from the AWS EC2 control panel, but the combo box does not have the g2.2xlarge option to select. It looks like GPU instances are available only for Amazon AMI. When I choose Ubuntu, it does not list GPU. Is…
Daniel Cukier
  • 11,502
  • 15
  • 68
  • 123
7
votes
2 answers

Amazon EC2 - Local backup of EBS AMI

I would like to store a local copy of my EBS AMIs for safekeeping/piece of mind, but this does not seem to be very straight-forward. The only way I have come across is to convert the EBS AMI to instance-store/S3 'format', bundling it and uploading…
marked
  • 589
  • 9
  • 24
7
votes
3 answers

What is the point of instance storage on EC2?

I'm building some AMIs from one of the basic ones on EC2. One of the instance types is running Tomcat and contains a lot of Lucene indexes; another instance will be running MySQL and have correspondingly large data requirements with it. I'm trying…
jabley
  • 2,212
  • 2
  • 19
  • 23
6
votes
2 answers

Move Amazon AMI to another account

I have some machines created with my account. Some of them uses S3 storage, some EBS. Now I need to move these machines to my company account to let it pay for. As I know I can start each machine as my company user and create an image. I wonder if…
Dmitry Kuzmenko
  • 130
  • 1
  • 2
  • 9
6
votes
2 answers

What's the default user name to log into a new Ubuntu 22.04 LTS instance? (AWS EC2 created from AMI)

I spun up a new instance using this AMI: 099720109477/ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-20220420 However, whenever I try to connect using putty I am prompted for a username. I enter "ubuntu" but I'm then disconnected with the…
caponica
  • 3,788
  • 4
  • 32
  • 48
6
votes
0 answers

How to import .so files (shared libraries) in AWS Lambda?

I'm trying to deploy .so files on Lambda using layers. The files are compiled using Amazon Linux docker image. I uploaded the layer as a zip with required files in /lib/. However my code is not able to read the files. from ctypes.util import…
secretshardul
  • 1,635
  • 19
  • 31
6
votes
2 answers

EC2 instances recreated by Terraform when new AMI released

I have written some Terraform code to create some servers. For AMI I was using the Terraform data module to get the latest Ubuntu 16.04 image ID and assign it to the EC2 instances. Recently I wanted to add another EC2 instance to this environment,…
Asim
  • 543
  • 4
  • 20
6
votes
2 answers

EC2 AMI built from Ubuntu 18.04 with ubuntu-desktop installed is unreachable

I am trying to create a custom AMI with some software installed including the package called ubuntu-desktop. However, installing this package makes the resulting AMI unusable. Exact steps for a minimal repro: Create EC2 instance from AMI…
Lev Dubinets
  • 788
  • 10
  • 32
6
votes
2 answers

How to get the list of all AWS AMIs using boto3?

I want to list all the AWS AMI's (Amazon Machine Image) that I can see using the console and Boto 3. I have tried using describe_instances() to get ImageIDs but not all the images are getting listed.
New_to_work
  • 253
  • 2
  • 5
  • 16
6
votes
1 answer

Is it possible to replace the AMI on an EC2 instance with a different AMI?

I'm running an EC2 AMI instance with LAMP stack and Laravel. I need to update my LAMP stack version as well as the Laravel version. I was thinking of running a new EC2 instance as my sandbox for the update process and install a brand new LAMP stack…
Bahman.A
  • 1,166
  • 4
  • 18
  • 33
6
votes
1 answer

Create copy of EC2 instance and launch as new instances

I setup one mail server in one EC2 instances. I want to copy the whole instance and launch as another new instance. I'm very confused about snapshot and AMI, so please suggest how to do it.
Tyrell
  • 163
  • 1
  • 2
  • 10