Questions tagged [ec2-api-tools]

Command-line scripting tools for interfacing with Amazon's EC2 computing platform.

The API tools serve as the client interface to the Amazon EC2 web service. Use these tools to register and launch instances, manipulate security groups, and more.

http://aws.amazon.com/developertools/351

111 questions
3
votes
1 answer

How to properly configure the Amazon EC2 AMI for 'hadoop-ec2'?

I am trying to launch an instance on Amazon EC2. I have researched this problem extensively, but I have not found any helpful information. When I run the command hadoop-ec2 launch-cluster mycluster 2, I receive the following error message: Starting…
3
votes
1 answer

Is it possible to create an ami from an openstack image?

I'm creating an image from a running instance in OpenStack nova image-create and i'm just wondering,can this image be uploaded to ec2? Or do i need to create an ami from it? Can someone guide me on how to go about this?
Pavan
  • 658
  • 2
  • 7
  • 28
2
votes
3 answers

Own linux image on EC2

I need to install linux from existing VMware VMDK on EC2. For first time I can do this manually, later I will need to do this in automated way. Could you please help me with link to relevant documentation. Also any tips and experiences are…
Tomasz Jureczko
  • 167
  • 3
  • 10
2
votes
2 answers

Find the terminated EC2 instances count

Is there a way to find the number of EC2 instances which were launched in last 1/2/3/4/5 or 6 months in all regions? (running and terminated). From a similar question as below, I can only get the current status (running|stopped|terminated) but not…
helloworld9
  • 173
  • 2
  • 2
  • 8
2
votes
1 answer

AWS IAM Policy to restrict Read Acces on EC2 instances

I'm trying to create a AWS IAM policy to restrict the read access on EC2 instances. Goal: I have many EC2 instances and many different users in AWS and I want to have a group of users who are able to see ONLY particular EC2 instances and not all of…
A.Service
  • 359
  • 3
  • 6
  • 16
2
votes
2 answers

EBS Volume attach to running EC2 Windows instance

I am having a scenario where EC2 mount two EBS Volumes and one of them is root. My ELB is setup to size=1 instance actively running. I want to have second EBS volume snapshot to be attached to new EC2 spin-off using AMI. How to do it using…
2
votes
1 answer

ec2-automate-backup error in describe volumes

I'm getting an error when trying to run ec2-automate-backup-awscli.sh. I saw https://github.com/colinbjohnson/aws-missing-tools/issues/88 which described a similar issue, but I'm using the cron-primer.sh and .aws file and still getting this error.…
Waynn Lue
  • 11,344
  • 8
  • 51
  • 76
2
votes
1 answer

Nagios - Status UNKNOWN for bash script

I am trying to monitor my EC2 loadblancer through Nagios using a bash script. Below is the script which I am trying to implement with Nagios. …
linuxnewbee
  • 998
  • 2
  • 10
  • 23
2
votes
3 answers

How to configure Amazon EC2 command line interface?

I want to install Amazon Ec2 cli tools on a linux machine. I have configured java and have installed ec2 cli tools but I am getting the following error: [root@ip-/]# ec2-describe-regions | sort Required option '-O, --aws-access-key KEY' missing (-h…
user3073109
  • 27
  • 1
  • 8
2
votes
1 answer

awsdeploy -> msdeploy -> runCommand timeout

I am using awsdeploy to deploy an elastic beanstalk ASP.NET MVC application. The application requires Crystal Reports which can only be installed by running a .msi installer (CRRuntime_64bit_13_0_6.msi). To run the installer as part of the…
2
votes
1 answer

Instance Store AMI from a customized EBS-backed instance

Sorry if this supposed to be easily understood from the docs, but I didn't - if I spin up an EC2 instance using one of the easily available Ubuntu EBS-boot AMI's, install a bunch of stuff and move some files around under "/", and then I create an…
Dev Kanchen
  • 2,332
  • 3
  • 28
  • 40
2
votes
1 answer

How to create an instance on EC2 with all customizations (libs,folders) from another instance

I am new to EC2. The way I am attempting to do this is: 1) create a snapshot from instance1 ; 2) create a volume from snapshot; 3) attach the volume to instance2 when I ssh to instance2 it is still the basic instance without my folders and…
2
votes
3 answers

shell script to set amazon ec2 hostname from tags

I am trying to set amazon EC2 hostname from the tag "Name" And found the answer to extract tags from instance data. ec2-describe-tags \ --filter "resource-type=instance" \ --filter "resource-id=$(ec2-metadata -i | cut -d ' ' -f2)" \ --filter…
Reed
  • 1,628
  • 3
  • 21
  • 29
1
vote
1 answer

How can I use grep to find a keyword in the response of ec2-describe-snapshots?

I'm using bashrc to make and delete snapshots. To delete them, I wanna use that command: ec2-describe-snapshots | sort -r -k 5 | awk '{print "Deleting snapshot: " $2}' and using a grep on the description but when I use grep directly on that…
clement
  • 4,204
  • 10
  • 65
  • 133
1
vote
0 answers

Assign IP address to spot instance automatically

"Spot Requests" has a really useful option called "Maintain target capacity". With this, I am sure that the server will be always there. But there is no way to automatically assign an IP address to the newly created server after the last one was…
shantanuo
  • 31,689
  • 78
  • 245
  • 403