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

AWS Ec2 image builder cron expression

I would like to schedule a cron that runs once week on Saturday @ 9pm. Here is the documentation https://docs.aws.amazon.com/imagebuilder/latest/userguide/cron-expressions.html This is what I tested so far with no luck. Still digging what I am doing…
Karl Diji
  • 103
  • 1
  • 6
1
vote
1 answer

EC2-Image builder failed with Unable to bootstrap TOE

I am using the AWS-Ec2 image builder for the first time and I have configured the pipeline with default configs and I am trying to run a component which is amazon-owned (python-3-linux), and I get the following error: SSM execution…
Jananath Banuka
  • 2,951
  • 8
  • 57
  • 105
1
vote
1 answer

I lost my pem file for one of my EC2 instance. No luck in restoring the instance by replacing the authorized key in root volume of this instance

I lost my pem file. So i followed the steps given in https://www.youtube.com/watch?v=F8jXE-_hdfg to restore the instance by changing the authorized_keys in root volume. Once it attached the instance in "dev/xvda" (root). I am still facing issue in…
1
vote
0 answers

How to check that AWS EC2 AMI requires EULA Opt-In?

There is a question that asks How to opt-in for AWS EC2 AMI from SDK?. And as I understand, it's not possible to do it. But is it possible to at least understand if AMI requires Opt-In? And if our account already opted in or not? (via SDK,…
Denis V
  • 3,290
  • 1
  • 28
  • 40
1
vote
1 answer

EC2 Image Builder with Amazon Inspector - different rule packages?

I've built golden image pipeline with EC2 Image Builder. It works perfectly fine. Now I want to integrate it with Amazon Inspector and there is aws-managed test component which I can add easily to my pipeline - inspector-test-linux. The issue here…
1
vote
0 answers

Neo4J Causal Cluster using 3 AWS EC2 Instances

We are trying to setup Neo4j Causal Clustering using 3 EC2 instances that we have created in our AWS Account each with Neo4j Enterprise Causal Cluster AMI. We made necessary configurations in the neo4j.template of each Neo4j EC2 Instance to enable…
1
vote
1 answer

How to setup Ec2 for MongoDB so that RAM and storage will automatically increase based on their requirement?

I have a MongoDB in AWS Ec2 Instance and want to automatically increase RAM and storage size. I search various documents and blogs, some said, use MongoAtlas or use vertical Ec2 Autoscaling. But my question is how to setup Ec2 for MongoDB so that…
1
vote
0 answers

EC2 created from AMI reflects unchanged private IP from Original Instance

I am a newbie on AWS . I did the following: launched an EC2 instance SSHed the instance and installed apache web server on it echoed the hostname (private DNS) of the EC2 instance back . created Image (AMI) launched another EC2 with the image…
1
vote
1 answer

Container is connecting default cluster when trying to setup new ECS Cluster

I am using following cloud formation script to create a new ECS cluster *{ "AWSTemplateFormatVersion":"2010-09-09", "Parameters":{ "KeyName":{ "Type":"AWS::EC2::KeyPair::KeyName", "Description":"Name of an existing EC2 KeyPair…
1
vote
1 answer

java code to create aws client using ec2 role or default credentials chain?

Below code creates AWS Credentials where access and secret keys are explicitly supplied. AWSCredentials credentials = new BasicAWSCredentials( "", "" ); But the issue with this approach is in production I can not…
1
vote
1 answer

Can't export a EC2 AMI to another account because the AWS Marketplace OS is obsolete

I'm trying to backup an old instance that I have from one of my accounts that I want to close down so I don't lose that instance. I was thinking in backing up the instance by making it an AMI and then transfer that image to another AWS account which…
VaTo
  • 2,936
  • 7
  • 38
  • 77
1
vote
1 answer

How can I set an ECS cluster status to ACTIVE

I've deleted the default cluster with aws console management and now I want to set it to ACTIVE on my EC2 instance. Below the output of aws ecs describe-clusters --cluster default { "clusters": [ { "status":…
J.Ghassen
  • 101
  • 1
  • 1
  • 12
1
vote
2 answers

AMI not enabled for ENA

I am trying to shrink the root volume of an AMI (ami-0a6b7e0cc0b1f464f) in us-east-1 region. The shrinking itself is successful i.e. I have created a smaller snapshot which works correctly. But when I create an AMI from this snapshot, the instances…
Rash
  • 7,677
  • 1
  • 53
  • 74
1
vote
1 answer

ec2 centos userdata not ran

I am trying to deploy an ruby on rails app through centos ec2 instance by using userdata at instance startup, the specify image is an centos 7 image. below is my userdata section. However, the userdata is not working and even the log file was not…
Calvin
  • 407
  • 1
  • 5
  • 21
1
vote
1 answer

Is it possible to delay jenkins from connecting to a slave before the cloud init script has run

I have a cloud init script #cloud-config package_upgrade: true packages: - openjdk-8-jdk - apt-transport-https - git - jq groups: - docker users: - default - name: jenkins groups: docker homedir: /var/lib/jenkins lock_passwd:…
David
  • 7,652
  • 21
  • 60
  • 98