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

Performing rake tasks in a user data script on AWS ec2

I am trying to fully launch my Rails application as part of the user data script passed to the launch instance EC2 API. The script sets proper keys, downloads the app from my git repo, and then it should run some initialization scripts, starting…
zmilojko
  • 2,125
  • 17
  • 27
0
votes
2 answers

Please help! Amazon EC2 EBS instance has failed. Need to retrieve files

My instance has been running smoothly for about 2 weeks, but yesterday I think I managed to break something during development of my application (although I just played around with mysql).. Today when I tried access the server it was very slow, so I…
hampusohlsson
  • 10,109
  • 5
  • 33
  • 50
0
votes
1 answer

Permission Denied (publickey) when trying to SSH to Amazon EC2 server

I am getting permission denied (public key) while doing a ssh to amazon machine. Here is the verbose output OpenSSH_5.8p1 Debian-7ubuntu1, OpenSSL 1.0.0e 6 Sep 2011 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for…
w2lame
  • 2,774
  • 6
  • 35
  • 48
0
votes
1 answer

How do I add env variables to an aws ec2 instance?

A total beginner level question here - I am trying to deploy my mern full stack app to aws ec2 (Amazon Linux 2 ) as a side project for the first time. I was able to get the frontend static React files into the aws ec2 instance. But I am confused as…
0
votes
0 answers

Configure AWS CLI by Bootstrap User Data in EC2

I am new to AWS. I wish to know - how to configure AWS-CLI (setup access and secret keys) automatically by bootstrap the EC2 instance, such that when somebody logs into the running instance he gets the AWS CLI already configured automatically…
marie20
  • 723
  • 11
  • 30
0
votes
0 answers

EC2 Image Builder OVA Import Fail due to Unsupported kernel version 6.1.0

AWS: error while creating AMI from a Debian12 iso - ClientError: Unsupported kernel version 6.1.0 What Linux Kernel Versions are Acceptable for AMI Import to AWS ? We have a Debian11 (Bookworm) ISO and want to create an AMI using this iso. We…
samadhan
  • 251
  • 2
  • 8
0
votes
1 answer

Target health check failing continuously

For a new instance created for EC2 in AWS cloud, trying to assign the same to load balancer based on target group. Steps followed: Created load balancer Created EC2 instance and configured security group with inbound traffic allowed from load…
0
votes
1 answer

how to put a hook in terraform main.tf as shell script to enable the additional EBS volume for delete_on_termination

I need a help to create the hook in shell script under main.tf file so that whenever i spin the server and additional ebs volume should get enabled for deleteontermination. below i have shared the code which i have created as shellscript. …
0
votes
1 answer

On a windows server ec2 instance launched from an ami, steamvr runs into critical error when started after autologon

When I launch a new instance from an AMI (this AMI opens steamVR after logon), steamVR runs into an error. From what I have been reading it is because when an instance is launched based on an AMI, the EBS volume attached to the ec2 instance needs to…
0
votes
1 answer

All pip packages missing when create instance from image

I am a new user to AWS I installed my package with packer and successfully created AMI, and all packages works good. e2esa-packer.amazon-ebs.my-ami: Name: Django e2esa-packer.amazon-ebs.my-ami: Version: 3.2.18 e2esa-packer.amazon-ebs.my-ami:…
yhx
  • 1
  • 1
0
votes
0 answers

g5.48xlarge on-demand instance creation failure

I try to launch a g5.48xlarge instance on AWS. But it says the configuration is not supported. My configuration is: Region: US-WEST-2 AMI: Amazon certified image, explicitly saying it support the G5 instance. The name is "Deep Learning AMI GPU CUDA…
0
votes
1 answer

Cannot connect to streamlit app hosted on EC2 instance

I have been banging my head against a wall trying to get my streamlit app deployed on an ec2 instance so I can share with others, however I am having trouble connecting to my streamlit app via the browser. I noticed that on my local machine I also…
Kyzoki
  • 3
  • 2
0
votes
0 answers

Angular app refuse to show up on local browser after up and running on EC2 instance

I was having issue with bringing up my angular app with node backend onto my local computer's browser after successfully having it up and running on EC2 instance. I have configured mmy security to allow traffic from port 4200 for angular and run ng…
0
votes
0 answers

Automate retrieving password from Ec2 windows instance that was launched from custom AMI

When the instance is launched from the custom AMI I could not retrieve password for the launched instance. This issue and resolution is discussed here and it worked. These are the manual steps I performed: Open the Amazon EC2 console, and then…
LP13
  • 30,567
  • 53
  • 217
  • 400
0
votes
1 answer

While copying an AMI image (from one region to another) in AWS create's an error that "The storage for the ami is not available in the source region"

In AWS I create an AMI image and copy that particular image from one region to another region but it generates an error that "Failed to copy AMI - The storage for the ami is not available in the source region" last time when I do the same Job of…