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

R + httr and EC2 api authentication issues

I would like to use the R package httr to access the EC2 services via their API. But I am a little bit unsure how to get started as it does not fall into the usual authentication format of "Oauth2.0" in which you have the usual: key, secret, token…
h.l.m
  • 13,015
  • 22
  • 82
  • 169
5
votes
1 answer

Is it possible to get TeamCity to stop & restart Amazon EC2 instances for build agents?

I have TeamCity (7.0.2) successfully spinning up an EC2 VM from a custom AMI, running our build, and sending back the build artifacts. However, even when I used to do this with older TeamCity versions, I was always unhappy with the notion that it…
4
votes
1 answer

How to check EC2instance is running or stop in AWS using java?

how do i know my instance is running or stop on EC2 using AWS-java-sdk DescribeInstancesRequest dis =new DescribeInstancesRequest(); dis.setInstanceIds(instancesList); System.out.println(ec2.describeInstances(dis)); i try with this but…
jayesh
  • 2,422
  • 7
  • 44
  • 78
4
votes
1 answer

REST API - AWS EC2 Pricing Per Hour

I want to programatically retrieve a list of prices for given instance IDs for AWS EC2 instances. I'm trying to do this via plain REST API calls (ie. without a framework). I want to provide a list of instance IDs: i-12345 i-45678 ... and…
A. Gardner
  • 571
  • 2
  • 7
  • 17
4
votes
1 answer

AWS ec2 import-instance error-No valid partitions. Not a valid volume.[Client error]

I am trying to import a SO VMDK file(OVA/OVF) of Ubuntu server 14.04 to AWS ,But facing the below error , even though the machine seems to have proper partitioning and volumes . This happens only in case of Ubuntu server, while Windows server…
4
votes
2 answers

Amazon EC2 to S3 transfer

I wanted to backup my EC2 instance to S3. I downloaded EC2 tools from: http://developer.amazonwebservices.com/connect/entry.jspa?externalID=351. I set up environment variables to: EC2_HOME= EC2_PRIVATE_KEY=
kevin
  • 2,172
  • 3
  • 18
  • 19
4
votes
1 answer

How to automatically add an autoscaled EC2 instance to a Security Group?

I want to set up my AWS to autoscale EC2 instances (Windows Server 2012). The catch is that they need to have their IP addresses added to a Security Group so they can communicate with another EC2. Is there a way that AWS can handle this…
wisbucky
  • 33,218
  • 10
  • 150
  • 101
3
votes
1 answer

AmazonEC2 launch with userdata

Should the Userdata when launching an ec2 instance always be a String? Cant that be a byte array? Java API: I use ec2Client.runInstance(TEST_IMAGE_ID, instanceType, "USER_DATA");
Satish
  • 95
  • 2
  • 10
3
votes
1 answer

How can I test a script that creates an ec2 instance without actually creating it?

I am scripting creation and manipulation of an ec2 instance. During testing all is well except that I actually launch the instance, which fairly costly in the long run. I have been searching for a test end point where I can verify that syntax of…
steenhulthin
  • 4,553
  • 5
  • 33
  • 52
3
votes
0 answers

What happened to ec2-api-tools? Is there an easy way to migrate dependant scripts

So I have a load of scripts which use ec2-api-tools. Our infosec people have identified an issue in one of the included libraries, that comes with it. So I've gone on the hunt for a current updated version. However, it seems that the version I…
sibaz
  • 1,242
  • 14
  • 26
3
votes
1 answer

Query EC2 instance type attributes

Is there a way to get the number of cores and amount of memory of an instance type from the command line aws tool? Basically I want to access the data on http://aws.amazon.com/ec2/instance-types/ programmatically.
Daniel Darabos
  • 26,991
  • 10
  • 102
  • 114
3
votes
1 answer

unable to parse the JSON returned by AWS.EC2.describeInstances() method in nodejs API

This is my code var AWS = require('aws-sdk'); AWS.config.region = 'ap-southeast-1'; var uuid = require('node-uuid'); ec2 = new AWS.EC2({apiVersion: 'latest'}); AWS.config.update({accessKeyId: xxxxxxxx, secretAccessKey:…
3
votes
1 answer

Can one specify the default region for the EC2 command line tools using a variable?

Is there an EC2_* environment variable to specify the default region of the EC2 command line tools in order to avoid specifying the --region eu-west-1 option for each command?
Gabriel Petrovay
  • 20,476
  • 22
  • 97
  • 168
3
votes
1 answer

ansible ec2_group module failed to create new security group

I have recently started learning ansible so it might sound like a noob question. I wrote a simple playbook(example.yml) which will create a security group in AWS ec2 using ansible's ec2_group module. The playbook is - --- - name: Add a security…
Pattu
  • 3,481
  • 8
  • 32
  • 41
3
votes
1 answer

AWS ec2-authorize security group error "Unable to find group"

I've tried the following command ec2-authorize default -P icmp -t -1:-1 -o 'Monitoring Servers' I've verified that it's a group using ec2-describe-security-groups "GroupName": "Monitoring Servers", "UserId": "WITHHELD", "GroupId":…