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
6
votes
3 answers

Boto3: Get EC2 images owned by me

I would like to get all ami images owned by me. I tried something like below: ec2 = boto3.resource('ec2') owner_id = 'owner_id' filters = [{'Name': 'owner-id', 'Values': [owner_id]}] images = ec2.images.filter(Filters=filters).all() But I need to…
drootnar
  • 133
  • 1
  • 2
  • 10
6
votes
2 answers

How to copy an AMI from Ireland region to China region in AWS

I have a setup in AWS Ireland region, now I want that AMI in my China. Does anybody know what is the best practice to achieve the task? Any help will be appreciated. Thanks in advance.
Bhavik Joshi
  • 2,557
  • 6
  • 24
  • 48
6
votes
1 answer

How to change authorisation mechanism for AWS (ec2-upload-bundle)

I am currently trying to back up my EC2 instance using the Amazon ec2-api-tools and ec2-ami-tools tools utilities. I am using a standard Ubuntu 14.04 AMI from Amazon. To download and install the required utilities, I've updated /etc/apt/sources with…
user1220022
  • 11,167
  • 19
  • 41
  • 57
6
votes
1 answer

Performance issue in hive version 0.13.1

I use AWS-EMR to run my Hive queries and I have a performance issue while running hive version 0.13.1. The newer version of hive took around 5 minutes for running 10 rows of data. But the same script for 230804 rows is taking 2 days and is still…
Brisi
  • 1,781
  • 7
  • 26
  • 41
6
votes
2 answers

How to opt-in for AWS EC2 AMI from SDK?

I am trying to launch an AWS EC2 instance using CentOS AMI ami-21682673 from EC2 SDK. The AMI itself is a marketplace product and it requires an acceptance of the licensing terms. The error I am getting: In order to use this AWS Marketplace…
Pavel Korsukov
  • 939
  • 11
  • 20
6
votes
3 answers

Running Amazon EMR with a custom AMI?

I need to run a custom C++ job as a Map Reduce on Amazon, and was planning to use Hadoop streaming for this. The C++ mapper executable relies on dozens of custom libraries, some of which are time-consuming to build. I expected EMR to support custom…
6
votes
2 answers

EC2 instance launched from AMI not reachable(ssh) after start/stop or reboot

When we launch an instance from an AMI. At first the instance is accessible(ssh). Once we stop/start the instance or reboot it the machine becomes inaccessible via ssh,we can ping it though. We see below error in System log. AMI ID used -…
6
votes
3 answers

Is there a list of AMIs for every popular linux distribution and version

I need to test a piece of software against every linux distribution/version. I'm going to use amazon AWS Is there a list of AMIs somewhere that I can just copy paste into my script to automate this tedious process?
Nikita Shamgunov
  • 129
  • 1
  • 1
  • 5
5
votes
2 answers

How do I establish a persistent connection to an Asterisk manager with PHP?

I'm attempting to connect to an Asterisk manager interface, and I'm having a problem with the code blocking, as well as connection persistence. Below is what I have, followed by a description of what's going wrong: /** * The parameters for…
5
votes
1 answer

Java Web Starter AMI

I'm trying to follow the tutorial on http://ttlnews.blogspot.com/2009/01/setting-up-amazon-ami-with-java-and.html but can't find the Java Web Starter AMI (ami-1c54b075) when searcing for AMI in the AWS console. Anyone now why this could be? It seems…
Mads Mobæk
  • 34,762
  • 20
  • 71
  • 78
5
votes
1 answer

Is it possible to add a tag to AWS AMI created with Packer containing name of filtered source_ami?

I am building AWS AMI with Packer. The source image is defined by filter source_ami_filter and the source block looks like source "amazon-ebs" "test-image" { ami_name = "Some AMI Name" instance_type = "t2.micro" region =…
Andriy
  • 1,270
  • 3
  • 17
  • 35
5
votes
1 answer

Move an EC2 instance to a different VPC

I have an EC2 instance in VPC1. It has a two block devices: /dev/sda1 (root device) and /dev/sdb I want to use boto3 to move this EC2 instance to VPC2. VPC1 and VPC2 are on us-east-1. What are my options? I am guessing I need to select 1 from the…
Raj
  • 549
  • 2
  • 11
  • 25
5
votes
2 answers

Error: httpd24-tools conflicts with httpd-tools-2.2.34-1.16.amzn1.x86_64

Got these errors while installing and didn't find a specific answer for it. So, I'm offering the solutions as I found them in case anyone else encounters this: Error: httpd24 conflicts with httpd-2.2.31-1.8.amzn1.x86_64 Error: httpd24-tools…
Adam Winter
  • 1,680
  • 1
  • 12
  • 26
5
votes
2 answers

How can I create an ec2 instance which can be hibernated?

I'm stuck in the storage stage. It says: To use hibernation, encrypt the root volume.. But I cannot click the encrypt checkbox, nor did I find any way to encrypt the root volume.
hansaplast
  • 11,007
  • 2
  • 61
  • 75
5
votes
4 answers

Can we use custom AMI for the creation of ECS cluster?

I have created a custom AMI that has certain softwares and scripts preloaded in it. Can I use this AMI for the ECS Cluster? I do not see any option to add AMI while creating a cluster
Roshan Chhetri
  • 149
  • 2
  • 9