Questions tagged [amazon-ec2]

Amazon Elastic Compute Cloud (EC2) provides self-service, on-demand, pay-for-what-you-use computing infrastructure resources.

The Amazon Elastic Compute Cloud (EC2) service is part of the Amazon Web Services cloud platform.

EC2 offers computing power in the cloud, on demand. The 'Elastic' part of the name refers to the ability to scale both up and down, as needed.

6592 questions
154
votes
3 answers

Delete Amazon EC2 terminated instance

I created an Amazon Free tier Usage Account. I launched two amazon ec2 instances using the online tool. After that one instance was created and running while other was pending which quickly shifted to terminated state. In description it shows State…
124
votes
7 answers

How to change an EC2 instance's security group

I have created a new EC2 instance. It got assigned the default security group. I want to change that security group. How?
user35042
  • 2,711
96
votes
6 answers

Assign Public IP (not Elastic IP) after instance launched

When I launch instance in AWS console I can set "Auto-assign Public IP" to true and newly created instance will be assigned with public IP address from pool. Now assume I have launched instance with this setting set to false and want to assign…
62
votes
13 answers

How to know if a machine is an EC2 instance

I would like to run some scripts on hosts which are EC2 instances but I don't know how to be sure that the host is really an EC2 instance. I have made some tests, but this is not sufficient: Test that binary ec2_userdata is available (but this will…
Kelindil
  • 753
60
votes
10 answers

How to determine AWS security group dependencies?

Amazon EC2 won't let me delete a security group, complaining that the group still has dependencies. How Can I find what those dependencies are? aws ec2 describe-security-groups doesn't say.
user14645
  • 1,690
  • 2
  • 15
  • 17
58
votes
5 answers

How to delete Instances in Amazon EC2 ? Change Pair Key?

How to remove Instances ? I test some Instances and now I terminate it. So, I want to remove it. I can't find delete or remove action. I just found terminate. How to change the pair key ? I don't have pair key for old Instances and I want to…
saturngod
  • 837
  • 2
  • 10
  • 12
30
votes
5 answers

Terminated EC2 instances keep restarting

I have a couple of small EC2 instances (t1.micro and t2.micro) one of which was setup using AWS-EB. I'd like to terminate both of them, but whenever I terminate them, the re-appear in my list of running instances a couple of minutes later. How do I…
tdc
  • 403
24
votes
3 answers

Why have both security groups and iptables on Amazon EC2?

I recently stumbled upon a firewall issue with my EC2 instance. The TCP port was made available to everyone via the EC2 Security Group, however there was still instance-side filtering using iptables. I figured if anything Security Groups are just a…
imaginative
  • 1,981
20
votes
5 answers

How can I make sure my amazon ec2 instance is using the reserve instance?

I purchased an Amazon EC2 instance at lower cost than regular on-demand instances. When I start a new instance in EC2 there's no indication that I would be using the reserved instance. How can I make sure that the instance I'm using is the reserved…
Charuru
  • 303
18
votes
3 answers

Where do I find my EC2 private key?

I'm trying to set up the EC2 API tools and I'm stuck because I cannot figure out where I can obtain the file pointed to by the EC2_PRIVATE_KEY environment variable (I believe I have the EC2_CERT). Of the multitude of different access credentials…
user55657
16
votes
4 answers

EC2 billing for fractional hours

Amazon's EC2 billing page says that fractional hours are billed as whole hours. But does anyone know if that means they round up the hours at the end of the month, or round up the hours at the end of each instance run? E.g. if in one billing period…
Hank
  • 563
15
votes
2 answers

Can you Transfer an EC2 Instance to another AWS Account

Is there a way to give an entire EC2 instance to a different party. Basically I was managing a EC2 Server for a client and am now giving up maintenance of the server. I don't want to be billed for this instance anymore. Instead of backing up our…
cjibo
  • 253
15
votes
1 answer

Difference between rebooting and stop-starting an amazon EC2 instance

I noticed that calling ec2.rebootInstances on an Amazon EC2 instance was much much faster than stopping and starting it again (ec2.stopInstances ec2.startInstances). It also preserved the IP address of the instance (I dont have elastic IP on…
figaro
  • 253
14
votes
6 answers

EC2 Instance will not stop or terminate after trying to create an AMI from the running instance

After a routine reboot of a Linux ec2 instance with 1 small root volume and 1 small attached volume I was not able to ssh into the instance. It is not clear why rebooting the instance caused it to be inaccessible from ssh. The instance showed as…
Snap Shot
  • 265
  • 1
  • 2
  • 10
12
votes
3 answers

increasing size of /tmp on EC2 instances

I am running an Ubuntu server on EC2 ebs, and my application needs a lot of temporary disk space, allocated in /tmp. However, on ec2 the root drive which also contains /tmp is pretty small, around 10GB. All of the remaining disk space is mounted…
Jeroen Ooms
  • 2,239
1
2 3
21 22