Questions tagged [amazon-ami]
For questions about Amazon Machine Images (AMI), which are pre-built instances that can repeatedly be re-provisioned.
8 questions
0
votes
1
answer
291
views
How do I create a LAMP server via EC2 Image Builder?
I am trying to set up a resilient way to deploy our monolithic web app on an AWS EC2. My current setup uses Ansible to "manually" install the components for a LAMP server on the latest ...
1
vote
1
answer
2k
views
User data in original windows ec2 instance does not get executed in custom ami
I created a windows Ec2 instance with user data in it. In my ec2 instance I downlaoded git and installed it. Later in EC2 instance, I provided it with the user data which was supposed to download a ...
7
votes
1
answer
5k
views
How does the creation of an AMI on AWS work and why is the creation time unpredictable?
Creation date: September 23, 2019 at 9:22:06 PM UTC+2
21:48: still waiting for completion
21:53: completed
Sometimes it takes 15 minutes and sometimes longer. How does a creation of an AMI work and ...
0
votes
1
answer
99
views
Which AMI was my EC2 instance created from? [closed]
Is there any way to tell which AMI my EC2 instance was created from?
1
vote
1
answer
284
views
Why does Docker fail to start on AWS ECS instances. ECS stateful instance fails initialization. ECS stateful instance doesn't join the ECS cluster
The ECS instance fails to join the ECS cluster because it relies on docker to launch its ecs agent. If in this case docker fails to start then the whole process halts.
Docker fails to start in AWS ...
6
votes
1
answer
656
views
Does the "cattle not pets" distinction apply as equally to machine instances as to containers?
There is a great discussion of the Cattle vs Pets distinction from Randy Bias here. Martin Fowler talks about a SnowFlakeServer.
In a series of talks, Adrian Cockcroft talks about how they moved ...
37
votes
5
answers
10k
views
How to avoid interactive dialogs when running "apt-get upgrade -y" in Ubuntu 16.04 when packaging with Packer?
I'm using Packer to create an AWS AMI based on an Ubuntu 16.04 image. In the beginning, I'm doing an upgrade:
sudo apt-get update
sudo apt-get upgrade -y
Here is the relevant part of my provisioners ...
7
votes
5
answers
694
views
What are best practices and/or tools for updating AMIs on a regular basis?
I have a Master-Workers style computation model. And, I launch the workers via an AMI through an Ansible playbook.
The workers' AMI has all the necessary configs needed for doing the computation (...