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

2 ELBs (ALBs) to 1 target group, possible?

I have the following scheme: Internet <-> elb1external <-> varnish <-> elb2internal <-> targetgroupofwebnodes But some /static/* & /media/* are routed to targetgroupofwebnodes from elb1external directly, around varnish & second ELB, so I need both…
GTXBxaKgCANmT9D9
  • 415
  • 1
  • 7
  • 16
17
votes
5 answers

Install of MySQL hangs on Ubuntu 16.04

I’m trying to install MySQL server on Ubuntu 16.04 using: sudo apt-get install mysql-server I get asked to set and confirm root password and then the install hangs at: Renaming removed key_buffer and myisam-recover options (if present) I’ve exited…
panthro
  • 375
  • 1
  • 2
  • 8
17
votes
2 answers

How to avoid GRUB errors after running apt-get upgrade - Ubuntu

I'm running ubuntu 14.04 on an EC2. After running apt-get upgrade, I'm prompted with a screen that asks me to reinstall GRUB boot loader The GRUB boot loader was previously installed to a disk that is no longer present, or whose unique identifier…
Ofer Velich
  • 307
  • 1
  • 2
  • 6
17
votes
3 answers

How to automatically update nginx upstream server list when aws ec2 hostname changes or increases?

I want to setup autoscaling in AWS. I don't want to use Elastic Load Balancer. Autoscalling in Amazon creates EC2 instances seamlessly during demand spikes to maintain performance, and decreases automatically during demand lulls to minimize…
17
votes
6 answers

Tons of TCP connections in TIME_WAIT state on windows 2008 - running on amazon AWS

OS: Windows Server 2008, SP2 (running on EC2 Amazon). Running web app using Apache httpd & tomcat server 6.02 and Web server has keep-alive settings. There are around 69,250 (http port 80) + 15000 (other than port 80) TCP connections in TIME_WAIT…
Ravi Reddy
17
votes
4 answers

Fastest time to get an EC2 instance running

I am considering moving from a VPS to EC2. EC2 is elastic and so is its pricing; I could boot my instance on demand, then let it shut down if it isn't active by the end of some hourly period. How much time does that process take? Assume a micro…
Tobu
  • 4,437
  • 1
  • 24
  • 31
17
votes
2 answers

What happens when a load balancer fails?

Let's say I'm using Amazon's EC2 load balancer. I have it hooked up to two instances (excuse me if my terminology isn't correct). What happens if the load balancer fails? Do both instances fail to work now?
SteveGSD
  • 297
  • 1
  • 2
  • 6
16
votes
2 answers

What is the HeavyUsage charge on AWS EC2?

I have a new charge on my AWS account yesterday (~$40). When I dug in a bit it comes from a category called USW2-HeavyUsage:r4.large($). I know what the USW2 is for and what the r4.large is for. What is the HeavyUsage referring to? the r4.large is…
Joe B
  • 353
  • 1
  • 4
  • 11
16
votes
1 answer

Elastic Beanstalk stuck for more than 12 hrs

I have an EB application that is stuck with this error: Failed Environment update activity. Reason: Internal Failure. I can not abort anything and I cannot change any configuration.. I dont know what to do, because every thing I do, it says: Could…
16
votes
3 answers

How to add a Tag when launching an ec2 instance using aws clis

I am trying to create an instance in ec2 using CLI. Is there anyway to specify tags to the instance when using CLI to create instances? aws ec2 run-instances --image-id $ami_id --key-name $deployment_key_name \ --region $region --security-groups…
16
votes
2 answers

Booting an EC2 instance from an existing EBS volume

I'm just getting up to speed on AWS and had a question about using an existing EBS volume as a boot device for an EC2 instance. It looks like a lot of the instances create an EBS volume for their boot devices. In the situation where the EBS volume…
NimbusScale
  • 307
  • 1
  • 3
  • 10
16
votes
2 answers

Wrong time on my Ubuntu Amazon EC2 instances

I have three Ubuntu EC2 instances on Amazon AWS (EU/Ireland), all set up as web server. I noticed the system date/time is incorrect in two of them (timezone is always set to UTC for my choice). Here is the output of date -R for my PC (EU/Italy, 2…
lorenzo-s
  • 347
  • 4
  • 10
  • 19
16
votes
4 answers

Auto-Attach EBS-volume to a New Spot Instance?

I am experimenting with EC2 spot instances, and am needing some data to be retained between terminations. Now as I understand it, when the current price goes above my max. bid, it will be automatically terminated. I assume any init scripts I have…
Jeff
  • 263
  • 1
  • 2
  • 4
16
votes
4 answers

Speeding up launch of Amazon EC2 Windows instances

I'm working on a Web service which is hosted on EC2 and needs to have a varying number of instances running, depending on load. We have the basic service up and running, but one of the things we're struggling with is the time it takes to provision…
gareth_bowles
  • 9,127
  • 9
  • 34
  • 42