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
11
votes
3 answers

Pricing of Key Pairs and Security Groups on AWS?

My free AWS account expired. I deleted all S3 and EC2 resources, but am wandering if I can leave the Key Pairs and Security Groups without having to pay for them. (My account resources look like this now: Resources) Amazon's documentation does not…
boardrider
  • 949
  • 2
  • 18
  • 29
11
votes
3 answers

How to move RDS database to different VPC

I didn't select a VPC when creating a MySQL RDS database, so it created it inside an auto-generated "default" VPC. I'm now unable to add it to any of my pre-defined security groups, or access it from instances in my existing VPC. The obvious…
Cerin
  • 3,600
  • 19
  • 61
  • 79
11
votes
2 answers

Access Amazon EC2 RDS instance from inside VPC

I have an Amazon RDS instance set up in the 'classic' EC2 (no VPC.) I also have a VPC set up that holds our newer, migrated applications and such. However, it would seem that there is no way to specify a combination of either CIDR or EC2 security…
Sam Halicke
  • 6,222
  • 1
  • 25
  • 35
11
votes
5 answers

AWS: Multi-region setup using single RDS instance

I'm trying to scale our web application (PHP, MySQL, memcache) in a multi-region scheme. Currently we are using a setup with two EC2 instances behind an ELB and an RDS instance, all of them in US-EAST (Virginia) region. We would like to have a…
Ion
  • 278
  • 2
  • 3
  • 10
11
votes
5 answers

Automatically shut down server on inactivity (SSH)?

I have a server hosted on EC2. The server is built on the Linux AMI, based on CentOS. It is dedicated to a client project, and I connect via SSH. Sometimes, I forget to shut down the server when unused, therefore generating unnecessary costs. How do…
feklee
  • 505
  • 5
  • 19
11
votes
1 answer

Amazon Ec2 Elastic IP - Outbound IP?

I am trying to make a kind of proxy using elastic IPs on my Amazon EC2 instance. My question is, say I associate an elastic IP to my Amazon instance, and then I make an outbound connection from my EC2 instance to a server, say www.yahoo.com. What IP…
J.Zil
  • 1,123
  • 3
  • 21
  • 29
11
votes
2 answers

Can I SSH into my Amazon EC2 server instance if I don't have .pem file from when instance was created?

I am working with some Amazon EC2 servers that are up and running, and I need to SSH into the servers. I don't have any keys that were generated when the servers were first set up (someone else did it long before I got here). Can I still get into…
Eric
  • 1,127
  • 3
  • 13
  • 24
11
votes
4 answers

how do I find out what part of my ec2 storage is ephemeral

This may be a silly question, excuse my ignorance. I have an instance running like this: Does Root Device : EBS mean my entire system is on EBS? I've configured apache and a perl app here, all my config and files will not go away right? How do I…
gideon
  • 1,145
  • 2
  • 13
  • 28
11
votes
2 answers

Assign multiple Elastic IPs to EC2 instance

When I try and associate a second Elastic IP to a small EC2 instance the currently assigned Elastic IP is disassociated. Do I need to use a VPC?
Ian Warburton
  • 329
  • 2
  • 4
  • 13
11
votes
4 answers

Enabling mod_rewrite on Amazon Linux

I'm trying to enable mod_rewrite on an Amazon Linux instance. My Directory directives look like this: Order deny,allow Allow from all Options None AllowOverride None Order…
Lorenzo
  • 265
  • 1
  • 2
  • 8
11
votes
2 answers

Connect to EC2 via Midnight Commander with key pair

I can connect or copy files to EC2 machine via: ssh -i my.pem ec2-user@ec2.xxx.compute.amazonaws.com and scp -i my.pem file.txt ec2-user@ec2.xxx.compute.amazonaws.com:/home/ec2-user but I want to manage remote files via Midnight Commander. There are…
mschayna
  • 213
  • 2
  • 5
11
votes
4 answers

Why do AWS spot-instance prices spike above the "on demand" pricing?

Amazon Pricing on Spot Instance Inconsistencies This is something which will be best explained through screenshots of a historical chart of instance pricings. If you look at a lot of the instance prices for spot instances, you will notice regular…
Laykes
  • 441
  • 5
  • 14
11
votes
4 answers

AWS metadata: Check if EC2 instance is spot?

There's a AWS metadata service which provides some information about the EC2 instance that issues a request to http://169.254.169.254/. I'm wondering if there's a way to know from that metadata if the instance is "Spot" or "On Demand"?
nab
  • 213
  • 2
  • 5
11
votes
5 answers

How do you keep up with Nagios/Capistrano configs when using EC2?

I use Amazon EC2 for my mobile app. Depending on load of the application at a given time, I might spawn new instances and then take them down when load is lower to save costs. How does one keep up with Nagios configurations for such a dynamic…
11
votes
3 answers

Amazon EC2 Reserved Instances: "Heavy Utilization" clarification

Should be another easy one here, but I need clarification on what they define as "heavy utilization" for Reserved Instance types. From their Website: Heavy Utilization RIs – Heavy Utilization RIs offer the most absolute savings of any Reserved…
gravyface
  • 13,957
  • 19
  • 68
  • 100