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.

6563 questions
19
votes
1 answer

Keepalive setting for Gunicorn behind ELB without Nginx

Our app's REST API is served by Gunicorn (not behind Nginx) running on AWS EC2 instances with a typical auto-scaling/load balancing setup. The load balancer's idle timeout is 60 seconds, and Gunicorn's keep-alive timeout is 2 seconds. We've been…
handsofaten
  • 337
  • 1
  • 3
  • 6
19
votes
3 answers

Issues with EC2 Elastic Load Balancer DNS and routing

We're trying to run a fairly straightforward setup on Amazon EC2 - several HTTP servers sitting behind an Amazon Elastic Load Balancer (ELB). Our domain is managed in Route53, and we have a CNAME record set up to point to the ELB. We've experienced…
Cera
  • 553
  • 4
  • 6
  • 13
19
votes
2 answers

AMI with or without reboot on AWS EC2

When creating AMI's from an EC2 instance I always check "no reboot", I've been wondering, what are the pros/cons of creating images with/without a reboot? Does keeping the server live affect the quality of the ami produced or is it just as good as a…
Jamie Taylor
  • 372
  • 1
  • 6
  • 15
19
votes
4 answers

EC2 drive not EBS volume size

I have an EC2 instance which I created a 500GB EBS volume for. Unfortunately, the EC2 instance shows only 8GB available. I have only one drive, which is right. [root@ip-10-244-134-250 ~]# ls -la /dev/x* brw-rw---- 1 root disk 202, 1 Aug 7 08:54…
Christian
  • 789
  • 1
  • 13
  • 31
19
votes
4 answers

How to allow elastic load balancer through port 80 in security groups?

I want to temporarily block port 80 for the outside world, but want the load balancer to pass through the firewall (via security group) so it won't see the instance as unhealthy. How can I do that? Update: I also want to know how can I allow only…
Liron Harel
  • 431
  • 1
  • 4
  • 13
19
votes
3 answers

Download existing EC2 key pair

I am playing around with Amazon EC2 and have (finally) managed to SSH into the box from my home machine. Now I want to connect from my work machine but neglected to copy the key pair on a USB key. Is there a way of downloading an existing key pair…
Ben Everard
  • 599
  • 3
  • 7
  • 22
18
votes
5 answers

Is it possible to get aws ec2 instance id based on its IP address

I have list of IP addressed, I want to find if instances associated with the IP address are still running or terminated. I am launching and terminating lot of instances on daily basis, just want to remove their certificates from puppetmaster. If…
Ramesh Kumar
  • 1,770
  • 5
  • 19
  • 29
18
votes
6 answers

Amazon EC2 Security Group inbound rule with a dynamic IP

I'm looking for clarification on what I see as a potential problem with EC2 Security Groups. I'm setting up a Security Group for connecting to linux instances. I've created "anywhere" rules for HTTP and HTTPS access. For my SSH rule, the amazon…
Will Byrne
  • 283
  • 1
  • 2
  • 4
18
votes
1 answer

Allow traffic from any instance in AWS VPC

'm trying to create a security group that allows all inbound traffic originating from within my VPC. I thought I could simply specify my CIDR block, but that doesn't seem to work and requests fail unless I create a rule which allows inbound traffic…
LuxuryMode
  • 283
  • 1
  • 2
  • 6
18
votes
5 answers

Use IAM to Allow User to Edit AWS / EC2 Security Groups?

I am trying to grant an IAM group the ability to edit our EC2 Security Groups, but I have been unable to get this working without granting access to everything in EC2. I have tried several versions of this: { "Version": "2012-10-17", …
Chris
  • 353
  • 1
  • 4
  • 10
18
votes
2 answers

Which AWS features are EBS backed?

I recently read an article AWS: The good, the bad and ugly, which mentioned that they've moved off of all EBS backed AWS features. What features are explicity (EBS backed EC2 instances) or implicitly (AWS web console) backed by EBS?
Jake McGraw
  • 910
  • 1
  • 8
  • 17
18
votes
4 answers

How to configure a custom NAT for use in Amazon VPC

I have an Ubuntu box I wish to use as NAT instance (among other things). I would prefer to avoid using the NAT AMIs provided by Amazon, and instead configuring NAT myself. Currently, my host has a single network interface (as shown in…
jjmontes
  • 3,387
  • 2
  • 19
  • 27
18
votes
9 answers

S3fs performance improvements or alternative?

I've been trying to use s3fs on an EC2 server but it's really slow. I spent the last 5 hours uploading 100MB of small files. Is there anything I can do to improve the performance or is it something related to S3fs? If not, what's an alternative I…
MB.
  • 385
  • 2
  • 5
  • 12
18
votes
1 answer

Difference between static IP and elastic IP address?

With Amazon's EC2, to assign an IP address I create an "Elastic IP", however it seems to just give me a static IP address. What is the difference between a static IP and an elastic IP? Or is it the same and just part of AWS's branding?
David542
  • 939
  • 3
  • 10
  • 15
18
votes
3 answers

Converting an EC2 AMI to vmdk image

I've come quite close to getting Amazon Linux to boot inside VirtualBox, thanks to this answer and these websites. A quick overview of the steps I've taken: Launch EC2 instance with Amazon Linux 2011.09 64-bit AMI dd the contents of the EBS volume…
Reed G. Law
  • 337
  • 1
  • 3
  • 10