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

EC2 API Error validating access credential

I installed the ec2 api following the amazon guide. I setted up the access id and secret as environment variable. Here it is my profile: export AWS_ACCESS_KEY=XXXXX export AWS_SECRET_KEY=XXXXXX export…
Kerby82
  • 4,934
  • 14
  • 48
  • 74
40
votes
3 answers

Download an Amazon EC2 AMI?

I would like to download a public Amazon EC2 AMI, such as this one (Ubuntu Lucid), so that I can programmatically extract its contents. How do I do this? I suspect there is an S3 address somewhere? This blog post looks like it once described this…
AndyL
  • 14,302
  • 14
  • 43
  • 70
31
votes
4 answers

How can I modify the instance name for an ec2 instance

I would like to modify the "name" attribute of an amazon instance. See attached screenshot. I need to do it programmatically, but can't find anywhere in the EC2 API how to set that. If it matters, I'm launching these via a spot request through…
Travis Leleu
  • 4,190
  • 2
  • 27
  • 33
23
votes
3 answers

How to pass environment variables when programmatically starting a new Amazon EC2 from image?

I am using AWS Java API RunInstance() to start a new EC2 instance from my custom AMI image. How do I pass environment variables to the new EC2 INSTANCE such as database url, AWS credentials etc. ?
user193116
  • 3,498
  • 6
  • 39
  • 58
23
votes
1 answer

Unable to find a $JAVA_HOME at "/usr", continuing with system-provided Java

The output of any Java command on Mac OS X is prefixed with "Unable to find a $JAVA_HOME at "/usr", continuing with system-provided Java...". For example, $ java -version Unable to find a $JAVA_HOME at "/usr", continuing with system-provided…
mon4goos
  • 1,569
  • 13
  • 24
22
votes
2 answers

Describing E2C instance doesn't return anything

I've started an EC2 instance and installed the ec2-api-tools. Environment variables (JAVA_HOME, EC2_PRIVATE_KEY, EC2_CERT) are set up. Running ec2-describe-instances doesn't return anything. According to the EC2 command line reference information on…
Jimbo
  • 271
  • 1
  • 3
  • 4
19
votes
5 answers

Getting ID of an instance newly launched with ec2-api-tools

I'm launching an EC2 instance, by invoking ec2-run-instances from simple a bash script, and want to perform further operations on that instance (e.g. associate elastic IP), for which I need the instance id. The command is something like…
Jonik
  • 80,077
  • 70
  • 264
  • 372
19
votes
4 answers

How do I take a backup of aws ec2 instance/ephemeral storage?

I have my db kept at /mnt, using ephemeral storage that comes with ec2 instance. To take the backup using ec2 api tools we need a volume id, but in the aws console I can find the volume id of only the 8gb root storage. What should I do if want the…
Smita
  • 4,634
  • 2
  • 25
  • 32
17
votes
5 answers

Determining Amazon EC2 instance creation date/time

Is it possible to determine (via boto) when a particular EC2 instance was created? http://boto.readthedocs.org/en/latest/ref/ec2.html doesn't seem to be giving anything helpful in this case. Need to find out the creation date of a particular set of…
megazoe
  • 545
  • 1
  • 4
  • 17
9
votes
3 answers

EC2 Java Api Wait till Ec2 Instance gets created.

I have just started using Amazon EC2 API in Java. I have created instances using ec2.runInstances(runInstancesRequest); But it will take some time for the instance to get launched (typically 1-2 mins). I need to get the public DNS of the machine…
kanap008
  • 2,800
  • 2
  • 25
  • 24
9
votes
1 answer

AWS CLI filter OR logic

I am trying to retrieve a list of servers using the AWS CLI tools. I have 2 groups of servers, 1 will have the string "mind" in the Name tag, another group will have the string "intelligence" in the Name tag. I can filter the output of…
Dan P
  • 183
  • 3
  • 8
7
votes
5 answers

.htaccess not working in amazon ec2 ubuntu instance

I have a server from amazon's ec2 service running on Linux Ubuntu ( Ubuntu Server 13.04 64 bit) and I have installed apache, php, and mysql. I have added a .htaccess file in my document root (i.e /var/www/). Here is the code in .htaccess file as…
user1491022
  • 171
  • 2
  • 3
  • 10
7
votes
5 answers

Error importing vmdk files using ec2 developer tools

Although vmdk disk format is supported by ec2-import-instance tool, every time I try to run the command on a vmdk file, I get the following error: ERROR: File uses unsupported compression algorithm 0 I invoke the tool in the following format: …
KT100
  • 1,381
  • 5
  • 17
  • 27
5
votes
4 answers

Choose a Free tier Amazon Machine Image (AMI) using EC2 command line tools

Is there any way to query for free tier AMI ID's using EC2 CLI tools?
karthik101
  • 1,619
  • 4
  • 17
  • 23
5
votes
3 answers

EC2_HOME is not set. Run AWS Commands from Cron

Basicly I'm not sure how to get my aws commands to run in crontab. I know I need to give crontab some environmental variables so that it can run the aws commands but, I don't quite know how to do that. Has anyone been able to do this…
1
2 3 4 5 6 7 8