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
19
votes
2 answers

Is it possible to duplicate an AWS EC2 instance without any downtime?

I've got an AWS EC2 instance that I would like to create a spin off of in order to do some testing. I know I can create an AMI of the running instance, then launch that. But when I create the AMI, the machine goes down for a couple minutes (at…
Tyler DeWitt
  • 23,366
  • 38
  • 119
  • 196
18
votes
3 answers

Best way to manage code changes for application in Amazon EC2 with Auto Scaling

I have multiple instances running behind Load balancer with Auto Scaling in AWS. Now, if I have to push some code changes to these instances and any new instances that might launch because of auto scaling policy, what's the best way to do this? The…
18
votes
2 answers

CloudFormation - always use latest AMI

The blog post Query for the latest Amazon Linux AMI IDs using AWS Systems Manager Parameter Store | AWS Compute Blog describes how to always reference the latest version of an distribution in a CloudFormation template. # Use public Systems Manager…
benji
  • 2,331
  • 6
  • 33
  • 62
18
votes
2 answers

What is the equivalent of apt-key in yum?

I am following a tutorial that can be found here to set up a headless selenium scraper on an ec2 instance: https://krbnite.github.io/Driving-Headless-Chrome-with-Selenium-on-AWS-EC2/ The tutorial I am using seems to assume an ubuntu distro whereas…
sometimesiwritecode
  • 2,993
  • 7
  • 31
  • 69
18
votes
4 answers

How do I install byobu in ec2 ami

I know it was possible usint a package manager since i did it once a time ago. But now if I try sudo yum install byobu it just fails ... Failed to set locale, defaulting to C Loaded plugins: fastestmirror, priorities, security, update-motd …
Glamdring
  • 319
  • 2
  • 6
17
votes
2 answers

What to bake into an AWS AMI and what to provision using cloud-init?

I'm using AWS Cloudformation to setup numerous elements of network infrastructure (VPCs, SecurityGroups, Subnets, Autoscaling groups, etc) for my web application. I want the whole process to be automated. I want click a button and be able to fire up…
Saqib Ali
  • 11,931
  • 41
  • 133
  • 272
16
votes
1 answer

Within IAM, can I restrict a group of users to access/launch/terminate only certain EC2 AMIs or instances?

What the title says. Within the master AWS account, I have several personal accounts, i.e. AWS Identity and Access Management (IAM) users. I would like to assign certain IAM users to groups and prevent them from terminating certain Amazon EC2…
Florin Andrei
  • 1,067
  • 3
  • 11
  • 33
16
votes
3 answers

I need help duplicating Amazon AWS EC2 instances

I'm just getting started with AWS EC2 and not entirely sure I understand it. From what I've read, an instance is basically a virtual server, and you should be able to somehow "duplicate" that virtual server from the AWS console somehow. Then use…
Charles Zink
  • 3,482
  • 5
  • 22
  • 24
16
votes
2 answers

How to find the list of applicable instance types for an AMI

Used ami-0fd3c3c68a2a8066f from ap-south-1 region http://cloud-images.ubuntu.com/locator/ec2/, but unable to use t2.micro instance type against this. Error: Error launching source instance: InvalidParameterValue: The architecture 'x86_64' of the…
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
13
votes
2 answers

Speed up AMI and ASG Creation

using Ansible I create an AMI of a ubuntu instance then using this AMI to create an Launch configuration and then update and auto scaling group, is there any shortcuts I can take to speed up the ASG and AMI steps, take 10mins+
12
votes
4 answers

Install .NET Core in Amazon Linux 2 using yum

I cannot find a straightforward way of installing dotnet 2.2 on a AWS Linux 2 AMI. There was some announcements that there was pre-built AMI's with it installed, but the ones I see, also have different versions of MSSQL Server. Isn't there a way to…
Vlad
  • 802
  • 1
  • 10
  • 23
12
votes
4 answers

AWS AMI deprecation (API: ec2:RunInstances Not authorized for images)

So I've been using AWS AMI in my cloud formation template. It seems they create new images every month and deprecate the old ones 2 weeks or so after the new one's released. This creates many problems: Old template stacks becomes broken. Templates…
Sleeper Smith
  • 3,212
  • 4
  • 28
  • 39
11
votes
5 answers

How to setup automatic scheduled snapshots for each single AMI/EBS?

Does Amazon support any kind of automatic scheduled snapshots that can be configured for each single AMI/EBS? my goal is to have each AMI backup itself regularly without relying on external scripts and similar.
Faris Zacina
  • 14,056
  • 7
  • 62
  • 75
10
votes
1 answer

EC2 t4g instance AMI

I am not able to find an AMI for the t4g type and Amazon Linux 2. This AMI should also be optimized for ECS. How can I find a compatible AMI for t4g, and is there one available that is not in the marketplace ? Thank you
1
2
3
58 59