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
1
vote
1 answer

Adding a tag to an EC2 Snapshot using ec2-api-tools

I've created a snapshot using ec2-api-tools of a volume within my AWS EC2 account. Currently I have: >> ec2addsnap vol-xxxxxxxx -d 'My-first-Snapshot' SNAPSHOT snap-12345678 vol-xxxxxxxx pending 2013-01-30T17:09:35+0000 086018780037 8…
williamsowen
  • 477
  • 1
  • 7
  • 22
0
votes
1 answer

Performing rake tasks in a user data script on AWS ec2

I am trying to fully launch my Rails application as part of the user data script passed to the launch instance EC2 API. The script sets proper keys, downloads the app from my git repo, and then it should run some initialization scripts, starting…
zmilojko
  • 2,125
  • 17
  • 27
0
votes
1 answer

Amazon EC2: what is key and secret fields for PHP SDK config.inc.php?

I know amazon ec2 public key, key-pair name and SSH authorized_keys in .ssh directory. During PHP SDK configuration, i have fill config.inc.php with key and secret field. I am unable to relate public key, key-pair name and SSH authorized_keys with…
P K
  • 9,972
  • 12
  • 53
  • 99
0
votes
0 answers

"Unable to open a display" while rendering in AWS ec2 instance

I am unable to figure out where I am wrong while rendering in ec2 instance Ubuntu 22.04.1 LTS (Jammy Jellyfish) p2.xlarge x86_64 I have followed every single step in…
0
votes
1 answer

AWS EC2 API CLI tools vs EC2 Command line tool CLI which one is latest

In my Linux Ubuntu box, I have two variants for tools installed for AWS EC2. AWS CLI v2 installed @ /usr/local/aws-cli/2.4.0 These provide the unified AWS CLI interface that everyone is used to aws ec2 EC2 API command line tools…
0
votes
1 answer

How to allow web hosting in EC2 with Linux AMI (port 80 rule added)

I've added rules for port 80 for http and even 443 for https but the url returns this site can't be reached. Do I need to configure the firewall somehow? Also for url I used the public DNS address, I also tried the domain returned by host [public…
VD26
  • 138
  • 2
  • 12
0
votes
1 answer

unable to Retrieve Default Windows Administrator Password of EC2 instance

When I am trying to retrieve password for one EC2 instance from key pair, I am getting the below error, please help me how to retrieve the password. Password is not available. This instance was launched from a custom AMI, or the default password has…
Roger
  • 1
  • 2
0
votes
2 answers

AmazonEC2Client describeInstances() returns zero Reservations in Java

While running "aws ec2 describe-instances" in command line, It gives list of all ec2 Instances but with Java AWS-SDK it's gives zero Reservations. Please see below code snippet, AmazonEC2 ec2; if (ec2 == null) { AWSCredentialsProviderChain…
chank007
  • 240
  • 2
  • 8
0
votes
1 answer

EC2 - passing user-data-file hangs/locks SSH into box

ec2-run-instances $AMI_ID -n 1 -g $SECURITY_GROUP -k $PEM_NAME -f myFile -t m1.large --availability-zone us-east-1a --monitor -K $EC2_PRIVATE_KEY -C $EC2_CERT Is what creates the instance. myFile has chmod a+x permissions: #!/bin/bash -ex sudo…
user375566
0
votes
2 answers

What's the best method for creating a scheduler for running EC2 instances?

I want to create a web app for my organization where users can schedule in advance at what times they'd like their EC2 instances to start and stop (like creating events in a calendar), and those instances will be automatically started or stopped at…
D. Stri
  • 1
  • 2
0
votes
0 answers

Getting a python error when running the EB command

I installed ec2 api tools and when I run the command I get this error: Traceback (most recent call last): File "/usr/local/bin/eb", line 9, in load_entry_point('awsebcli==3.9.0', 'console_scripts', 'eb')() File…
Blankman
  • 259,732
  • 324
  • 769
  • 1,199
0
votes
2 answers

ec2: elb-create-lb-listeners fails

Has anyone gotten amazon's elastic load balancing command: elb-create-lb-listeners to work? Is this the right site for ec2 questions: would serverfault be better? Amazon's forums seem slow... I get: PROMPT:~ acct$ elb-create-lb-listeners
Colin
  • 3,670
  • 1
  • 25
  • 36
0
votes
0 answers

AWS access key file error - Required option '-O, --aws-access-key KEY' missing (-h for usage)

I am trying to execute a bash script to fetch the ec2 cost details from aws. while executing the script i get the following eror Required option '-O, --aws-access-key KEY' missing (-h for usage) I have exported the keys inside my script as well as…
0
votes
2 answers

How can I start an instance from the new EC2 CLI?

I have an ec2 micro instance. I can start it from the console, ssh into it (using a .pem file) and visit the website it hosts. Using the old ec2 CLI, I can start the instance and perform other actions including ssh and website access. I am having…
0
votes
2 answers

Boto: how to get security group by id?

I`m trying to get the security group by group id. Here is the code: #!/usr/bin/env python2.7 import boto.ec2 import argparse parser = argparse.ArgumentParser(description="") parser.add_argument('sec_group_id', help='Security group…
Ivan
  • 170
  • 1
  • 2
  • 5