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
0
votes
0 answers

How to execute shell script during start of the machine in AWS EC2

I have create EC2 instance(name: firstinstance) and install my application on it. Then I have created AMI image using the above instance Then I have created EC2 instance(name: secondinstance) from AMI image But now I want to update the yml…
Galet
  • 5,853
  • 21
  • 82
  • 148
0
votes
1 answer

Hardening AWS EC2 Instances

I have launched and AWS ECS cluster with 4 EC2 instances with ecs optimized AMI 2 years ago, the system was working fine but due to systems hardening compliance , I need to update my ECS cluster EC2 instances with latest ECS optimized AMI. I can…
0
votes
0 answers

How to apply missing security patches and do reboot server using shell script if missing security patches are found on AWS Linux AMI 1?

Problem: I do not want to use aws cli commands for applying patches and reboot AWS Linux Instances. I have following command that can apply patches and reboot server every week. #!/bin/bash sudo yum update-minimal --sec-severity=critical,important…
Jiya
  • 225
  • 1
  • 6
  • 19
0
votes
0 answers

Amazon EC2 Windows AMI booting slowly

I've inherited a system that has an custom AMI based on Windows Server 2019. This AMI boots up in about 60-90 seconds. Its based on Full Windows Server 2019 - not the stripped down Core version. The person who made it isn't around any more. I'm…
reach4thelasers
  • 26,181
  • 22
  • 92
  • 123
0
votes
1 answer

no_device: yes not working while create an ami using Ansible

I am trying to create an ami from an ec2 instance, I have four volumes attached to instance but I wanted choose particular device types without detaching volumes from instance while creating an ami using ansible, I have tried multiple scenarios like…
Ansirock
  • 1
  • 1
0
votes
1 answer

Can AWS spot instances with 200GB AMIs be spun up quickly?

I have a data science application that I need to run once every 2-3 hours, where I need to use 64 cores for 6 minutes in an embarrassingly parallel fashion. Each of the cores needs to load 3GB of data from disk for a total of 192GB of disk data. To…
Jase
  • 1,025
  • 1
  • 9
  • 34
0
votes
0 answers

EC2 instance pointed folders not Opening in AMI Snapshot

I am completely new to AWS . I am working with a team who are sitting in some other location. They had created an EC2 instance with 3 folders inside the /var/www/html/ directory namely say A,B,C. They attached an Elastic IP to that instance. Now…
0
votes
1 answer

EC2 Instance Connect fails when trying to connect to Deep Learning AMI

I created an AWS EC2 instance following Get started with deep learning using the AWS Deep Learning AMIs | AWS. Now it is up and running. It offers 3 options to connect: A connection via a standalone SSH client works, but when I try a browser-based…
mentalmushroom
  • 2,261
  • 1
  • 26
  • 34
0
votes
1 answer

How to send log message from userdata execution to AWS EC2 console for Windows AMI?

I want to send some message logs like Step-1 done , next Step-2 done from the powershell script block to the aws ec2 console screen for windows 2016 instance. Can any body know how to implement that?
Dhar Dibya
  • 47
  • 1
  • 10
0
votes
1 answer

Bootstrap Scripts vs Custom AMI for making EC2 easy to rebuild

I have an EBS backed EC2 web server. I am trying to get to the point where I can automate launching an identical server (identical in terms of software and config). From my understanding there are two ways to achieve this: Install all required…
Connor Bishop
  • 921
  • 1
  • 12
  • 21
0
votes
1 answer

EC2 Windows Instance run python script at start

I have an EC2 Instance with Windows, and I need to run a python3/selenium code automatically right after it starts. I have tried USER-DATA but no success. The objective is set a process to run automated tests to our portal automatically after the…
0
votes
2 answers

what is the difference between Amazon AMI and EBS snapshot?

I have to create either an Amazon EBS snapshot or an AMI from an instance to keep backup of those instances before terminating them. I have some questions related to this which I am not able to figure out: If we create an AMI or EBS snapshot of the…
0
votes
1 answer

How to inject file.log to logstash and display it via kibana

I using docker container and docker-compose, to create ELK containers, after the containers created i should inject file into logstash and display it via docker I'm havent work on docker until three days ago, i working at this problem, surfed at…
B. Kristina
  • 53
  • 1
  • 7
0
votes
1 answer

Installing GoCD Agent with Yum fails with `sysvinit-tools` not found

I'm' trying to install GoCD Agent with sudo yum install -y go-agent However, I'm getting the following error. Resolving Dependencies --> Running transaction check ---> Package go-agent.noarch 0:19.6.0-9515 will be installed --> Processing…
Milindu Sanoj Kumarage
  • 2,714
  • 2
  • 31
  • 54
0
votes
1 answer

Bootstrap EC2 instance using template which references another template

I am trying to bootstrap an AWS EC2 instance using terraform. I am using user data and referencing a file which has the start up script for the user data (instead of inline). This file also references another file for some config. The instance is in…