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

ec2-automate-backup purge not working

We are running this script below and this doesnt delete anything older than one day what are we missing ? We got the script from github.com/colinbjohnson/aws-missing-tools/tree/master/ec2-automate-backup ec2-automate-backup -r "us-west-2" -s tag -t…
modasir
  • 1
  • 2
0
votes
1 answer

Saltstack: (boto_secgroup) Add a rule that allows ALL TRAFFIC to a sec group

[using salt --version: 2015.5.0] I want to add a rule that allows ALL TRAFFIC from another security group I have this in my pillar: securitygroups: groups: - name: NFS region: us-east-1 vpc_id: vpc-1234 …
0
votes
0 answers

Assign domain name through CLI - AWS

By EC2-API tools we can create new instance and assign an elastic ip to it through command line interface. Is there any method to register a domain and map it with the elastic ip of the newly created instance through CLI ?
ktrev
  • 37
  • 3
  • 9
0
votes
1 answer

Any way for EC2 instance to discover which region it is in?

I want to write a script which uses the AWS api within an EC2 instance to modify its own configuration, however to use the aws command I need to provide a AWS_DEFAULT_REGION environment variable with the correct region (i.e. 'us-east-1'). If I…
mikegreiling
  • 1,160
  • 12
  • 21
0
votes
1 answer

Redirect objShell.run with comspec and multiple arguments into a file when describing ec2 instances in vbscript

I've been struggling with this issue for some time now and it seems nobody on forums or google posted something like this, so I'll try to get some help here. I'm describing ec2 instances using vbs with multiple arguments and I'm using constant for…
efg
  • 187
  • 13
0
votes
1 answer

ec2-describe-instances does not return a response

I am working with an application that uses EC2 CLI. I have a running instance in us-east-1 region. When I run ec2-describe-instances --region us-east-1 it does not return anything. However, aws ec2 describe-instances --region us-east-1 returns the…
0
votes
1 answer

Why the EC2 instance is not able to access the RDS instance, if we set publicly access to 'No' with default VPC and Security group?

Not able access the RDS instance from the EC2 instance, if we set the publicly access to 'No'. As per my understanding the EC2 instance should be accessible within the network and should be blocked outside network.
0
votes
2 answers

When purchasing a reserved instance it means there will always be an instance for me?

I am a little bit confused with the way EC2 pricing works with reserved instances. It is my understanding that EC2 reserved instances are just a way to price instances. For my application I need to randomly create a new instance and terminate the…
JordanBelf
  • 3,208
  • 9
  • 47
  • 80
0
votes
2 answers

Complete control of EC2 instances from python

I am new to EC2 and I am trying to find a way to get started easily. I have searched internet for tutorials, however I am unable to find a precise answer to my question. I am trying to use amazon EC2 for some personal small scale scientific…
Sunny88
  • 2,860
  • 3
  • 24
  • 25
0
votes
1 answer

userdata ruby script to run on instance startup uses wrong ruby version

I have an instance that I would like to run a user script when it starts. So I put this code in the userdata: Content-Type: multipart/mixed; boundary="===============zCWTbYbXsHmnlc1kxsQr93CA==" MIME-Version:…
Gil Zellner
  • 889
  • 1
  • 9
  • 20
0
votes
1 answer

Can I use same signing certificate with knife ec2 that I use with ec2-api-tools

I have created a self-signed certificate and added it as 'signing certificate' on my AWS account. It works with ec2-api-tools with no problem. Can I use it with the knife-ec2 plugin as well? How? If not, what is the best way to authenticate…
0
votes
1 answer

AWS start instance from cmd line specifying args to launch script

I need to be able to startup AWS EC2 instances quickly from one of my AMI images and at launch run a script to bootstrap the instance. I know I can do this with user data but I need to be able to pass the script an argument that will be different…
chrisp_68
  • 1,731
  • 23
  • 41
0
votes
1 answer

AWS API Tools vs AWS CLI: ec2-import-instance

I'm wondering... in the "new" AWS CLI tool, which would be the equivalent to the "old" ec2-import-instance command? Can't find anything useful in the AWS Docs, help output or on the web. Reason why I'm asking is that I'm curious to see their Python…
sysconfig
  • 1,369
  • 10
  • 15
0
votes
1 answer

Not able to get instance-id from powershell in EC2 windows machin

I can able to get the instance-id from AWS EC2 windows machine's IE browser using the URL http://169.254.169.254/latest/meta-data/instance-id In the same machine when I use Powershell command Invoke-WebRequest…
0
votes
1 answer

Not able to SSH to new command line created instance

I'm creating a new instance by using the following command, ec2-run-instances --key "xxxx keypair" --instance-type t1.micro --instance-initiated-shutdown-behavior terminate --user-data-file myscript.sh $ami_id And my AMI is bitnami default…