All Questions
Tagged with ec2-ami ec2-api-tools
20 questions
0
votes
1
answer
404
views
How do I launch multiple EC2 instances to run a program with different parameters
I am running a program which takes in certain parameters. Because the program will run for a long time, I am thinking to launch multiple EC2 instances such that I can run this program with different ...
2
votes
2
answers
1k
views
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 ...
0
votes
2
answers
176
views
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 ...
0
votes
1
answer
1k
views
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-...
4
votes
4
answers
3k
views
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?
0
votes
1
answer
135
views
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 ...
1
vote
1
answer
3k
views
AWS Instance creation error
i am getting the below error while creating an instance in AWS through eclipse.
exception in thread "main" com.amazonaws.AmazonClientException: Unable to load AWS credentials from any provider in the ...
0
votes
1
answer
250
views
How do I know which AMIs are created from instance id i-xxxxxxx
I can describeImages and describeInstances via PHPSDK2. But, How can I find an AMI which was created from any given instance-id?
The description of AMIs doesn't point back to the original instance. ...
3
votes
1
answer
774
views
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 ...
1
vote
1
answer
2k
views
Terminate EC2 instance using command line API
I am having AWS EC2 instance and I am using it by putty.
I have also downloaded the EC2 command line API to that ec2 instance.
Now i want to terminate EC2 instance within same EC2 instance using EC2 ...
3
votes
1
answer
4k
views
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 <server-name>
and i'm just wondering,can this image be uploaded to ec2? Or do i need to create an ami from it?
...
2
votes
1
answer
1k
views
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 ...
2
votes
1
answer
58
views
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 ...
5
votes
1
answer
1k
views
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" ...
2
votes
3
answers
7k
views
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=$...
23
votes
3
answers
13k
views
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. ?...
0
votes
1
answer
1k
views
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 ...
1
vote
2
answers
2k
views
EC2 - Create AMI - Cannot connect to new instance
I am experiencing difficulty trying to launch a AMI from an EBS volume. I am basically trying to launch another instance of a Linux (i386) based AMI that I have already configured the way I want. I ...
0
votes
1
answer
394
views
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 ...
43
votes
4
answers
71k
views
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? ...