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

learn more… | top users | synonyms (1)

6
votes
6answers
4k views

Is it possible to use an EC2 RDS MySQL instance as a slave to an external master?

I have a master MySQL instance running on our local network, but I was wondering if I can get an EC2 RDS instance to replicate the master or is this locked down by amazon?
6
votes
1answer
158 views

How to make a Cent OS install as similar to an EC2 rhel based instance as possible?

I'm trying to setup vagrant to deploy locally, while we also want to deploy to elasticbeanstalk. So how can I make my local cent OS Vagrant VM as close to the Amazon EMI as possible? My co-worker ...
6
votes
1answer
203 views

Disable “shared terminal” behavior with Unbuntu 11.10 on EC2?

I recently created by first EC2 server using an Ubuntu 11.10 AMI (previously had been using 10.4). The default terminal behavior for this server seems a bit odd. When I ssh to the server from a Mac ...
6
votes
1answer
1k views

Having problems with maintaining sessions across multiple Amazon EC2 instances

One of my sites is hosted via Amazon EC2 service. The problem starts happening when the site faces a heavy load which in turn spawns a new EC2 instance via AutoScaling. This is good but the issue is ...
6
votes
3answers
2k views

Convert a .vmx file for use on EC2

I've got a virtual machine that I'd like to have running as an EC2 instance. Is there any way to simply convert a .vmx to an EC2 image?
6
votes
3answers
2k views

Amazon CloudFront and EC2: Global Load Balancing

We have an app that is going to store and serve up a decent amount of data in S3 to a global audience where latency should be minimized. So, we've been doing tests with Amazon CloudFront and have seen ...
6
votes
2answers
4k views

Should you use iptables with EC2 instances?

You can use ec2-authorize to specify what kind of traffic to allow to your ec2 instance. Is it still a good idea to run iptables, or is that introducing unnecessary complexity?
6
votes
2answers
5k views

How to run an OVA + OVF appliance inside of AWS EC2?

GitHub Enterprise ships as an Open Virtualisation Appliance and File; it's intended to be dropped into existing virtualization setup like VMWare, VirtualBox, etc. I'd like to run it inside of the AWS ...
6
votes
2answers
751 views

Amazon EC2 multiple private IP addresses per instance

I have a scenario where an application requires multiple private IP addresses but does not require the resources of multiple instances. In this case, I would like to run multiple jboss instances on ...
6
votes
3answers
9k views

Allow scp/ssh for www-data user

I am on Amazon EC2 using Ubuntu 10.04.2 My web folder is owned by www-data so I want to be able to log into my server as www-data for ssh and scp. Thanks! Adding the line to my /etc/ssh/sshd_config ...
6
votes
2answers
373 views

Strategy for maintaining Amazon RDS instance on prod vs development

How do you folks manage your Amazon RDS instances? In production I obviously want to use Amazon RDS with a master-slave replication setup going. Unfortunately this incurs substantial costs to bring ...
6
votes
1answer
484 views

Is there a place to get popular AMIs for Amazon EC2?

Amazon has a list of public AMIs: http://aws.amazon.com/amis But this list is sorted by date, not popularity, so it's practically useless for finding good AMIs, unless you know in advance what ...
6
votes
1answer
984 views

debugging high load average due to slow io on ec2

I am on amazon ec2 ubuntu 11.04 large instance with a 150GB volume mounted for the database (ext4). The cpu usage is VERY low but the load average has been consistently at 2.0 for about a day now. I ...
5
votes
3answers
196 views

Files in /var are gone

I have mounted an additional hard drive and all my files in /var are gone. I added one more EBS hard drive in Amazon EC2. After mounting that drive my whole /var is gone. I cannot even start Apache ...
5
votes
4answers
1k views

EC2 billing for fractional hours [closed]

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 ...
5
votes
9answers
3k views

EC2 IP Address : How can a web server identify db server ip address at startup?

I have a simple 2-tier arrangement - one web server (Websphere hosted on windows), and one oracle db server. The web server needs to connect the oracle database server. I am trying to write a script ...
5
votes
4answers
4k views

High iowait on Amazon EC2 MySQL instance with EBS volume

We have a MySQL server running on an Amazon EC2 c1.medium instance relying on a single EBS volume using the ext3 filesystem for storage. This MySQL server is queried ~500/ps by several applications ...
5
votes
3answers
887 views

Are there any advantages to using OpenSolaris over linux other than ZFS?

Are there any advantages to using OpenSolaris, other than ZFS, rather than using a common linux distribution such as CentOS or Ubuntu? I ask because I'm interested in using OpenSolaris on AWS to take ...
5
votes
5answers
8k views

Why Can't I Reach My Amazon EC2 Instance Via It's “Elastic IP Address?”

The server works fine via the Amazon assigned DNS entry, but I cannot reach it (using a browser) via the Elastic IP address Amazon assigned the box. Ping does not work either. I am trying to confirm ...
5
votes
4answers
1k views

Lock Windows Disk for Backup (EC2 Snapshots)

I'm looking for a way to flush all pending writes to disk in Windows, then buffer all future writes until a command gives the go-ahead. I'd like to flush SQL Server writes and Windows system writes, ...
5
votes
3answers
7k views

Mounting an attached ebs volume in EC2

I've created an EC2 instance, created an EBS volume, attached it to the running instance, and successfully ssh'ed into my instance. The drive is attached as /dev/sdf Next, I tried mounting the drive ...
5
votes
3answers
3k views

How to mount /tmp in /mnt on EC2?

I was wondering what is the best way to mount the /tmp endpoint in the ephemeral storage /mnt on an EC2 instance and give the ubuntu user default write permissions. Some suggest editing /etc/rc.local ...
5
votes
4answers
2k views

On AWS do I have to open ports in an EC2 instance's firewall as well as security group?

If I change my SSH port from 22 to 23453, I can no longer ssh in. In more detail, I'm using a Red Hat EC2 instance on Amazon Web Services. This is the second change I've on a fresh install (first ...
5
votes
2answers
4k views

How to use “Instance Store Volumes” storage in Amazon EC2?

According to AWS I got 850 GB storage with the Medium EC2 server. But when i create an Amazon Linux AMI, I am unable to use the 850 GB provided. While creating it does show in Storage Device ...
5
votes
2answers
4k views

How to use Amazon EC2 command line interface?

I am trying to use the command line interface to get a description of an EC2 instance that I just setup. I connected to the server via ssh and ran the command ec2-describe-images ami-12345abc. ...
5
votes
2answers
2k views

ec2 rebooted my instance?

I found out that my CentOS 5 server on EC2 was rebooted, without my command to do so. I did not even log in on the day it was rebooted. When I look at 'last' in linux, it says: jeroen pts/0 ...
5
votes
2answers
1k views

Production deployment to EC2 with minimal downtime

I have a simple web application deployed on a large instance with EC2. I now want to deploy the latest code to this server but I want to do this in a way which minimizes downtime and is a smooth as ...
5
votes
1answer
510 views

`ps` and `bin/bash su` in ps aux output

I have a shared server (amazon ec2 micro powered by bitnami) with a web application (Wordpress), which is showing low performance lately (with relatively stable traffic and usage). The only suspitious ...
5
votes
3answers
3k views

Setting up Amazon Cloudwatch to get an alert when you server is down

I have an instance running on Amazon EC2 that I turned into a webserver. Now I have been looking at cloudwatch, but I do not know if it is the correct tool for the job. Basically I want to get ...
5
votes
3answers
2k views

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? ...
5
votes
3answers
4k views

Speeding up Apache and PHP

What are some good modules or systems that for caching that I can use for decreasing my load on Apache on an EC2 server running PHP, and why would you choose them?
5
votes
3answers
766 views

long SSH password vs SSH Keys

Using amazon's EC2 Service, which is awesome in every regard. Only problem is, I have problems logging in with the SSH keys they automatically genarate. I have no idea what the problem is, but have ...
5
votes
4answers
2k views

Which Amazon EC2 AMI to use for cross browser testing?

Which Amazon EC2 AMI should I use for cross browser testing? I'd like to test on IE6, IE7 and IE8 (using a Mac), and would like an AMI with sensible settings, and perhaps something like Superpreview ...
5
votes
4answers
1k views

Multiple AWS instances and one database

I have a web app that lives on two AWS instances - one instance hosts the site, and the other hosts the actual database (MySQL). The instance hosting the site has an elastic IP pointing to it, which ...
5
votes
1answer
335 views

How to prevent/firewall calls to AWS EC2 Instance Metadata API?

The AWS EC2 Instance Metadata API provides a lot of useful functionality. Anyone on the actual EC2 instance can make a call to http://169.254.169.254/ and see metadata for the instance the call was ...
5
votes
2answers
417 views

Does Amazon EC2 and RDS have ECC memory?

I know that Amazon's Cluster GPU Instances have ECC memory as mentioned on their blog but there's no mention of other instance types. There's a forum post from back in 2007 that went unanswered. Does ...
5
votes
2answers
2k views

Most efficient (time, cost) way to scrape 5 million web pages?

I have a list of web pages that I need to scrape, parse and then store the resulting data in a database. The total is around 5,000,000. My current assumption of the best way to approach this is to ...
5
votes
1answer
2k views

How do I interact with the console during boot time on Amazon EC2?

I have an instance which is stuck at this boot prompt (looking at the instance log from the management console): The disk drive for /mydisk is not ready yet or not present Continue to wait; or Press ...
5
votes
1answer
2k views

Need to scale an Amazon EC2 instance (but JUST the storage, not the CPU)

I currently have this image: High-CPU Extra Large Instance (Amazon Linux AMI) 7 GB of memory 20 EC2 Compute Units (8 virtual cores with 2.5 EC2 Compute Units each) 1690 GB of instance storage 64-bit ...
5
votes
2answers
5k views

EC2: multiple ssh keys for an instance?

Is it possible to create more than one private key to SSH into an EC2 instance? What's the general best practice for this? We have multiple users who need to SSH into the servers and distributing one ...
5
votes
3answers
4k views

Is there a way to set an AWS instance's name from command line tools?

In the web console there is a field "Name" which you can edit to associate useful context with an instance, is there a way to set or retrieve this info from the command line?
5
votes
1answer
880 views

Postgres suddenly slower and higher CPU usage

We're running a Postgres DB that's about 38GB, hosted on a 68GB EC2 instance. It's been humming along, with load at ~0.7 (on an 8 core machine) and little CPU usage until about 16 hours ago, when CPU ...
5
votes
2answers
3k views

Are EC2 security group changes effective immediately for running instances?

I have an EC2 instance running, and it belongs to a security group. If I add a new allowed connection to that security group through AWS Management Console, should that change be effective ...
5
votes
4answers
3k views

How to move S3 bucket to different location

We use S3 for storing millions of entries in our webapp, now we move the whole thing to EC2, EU servers, and we also want to move that S3 data to EU. But the bucket we use is in US, and there seem to ...
5
votes
2answers
2k views

How can I create a swap partition on Amazon EC2 with ephemeral storage?

This is the output of df -k: Filesystem 1K-blocks Used Available Use% Mounted on /dev/xvda1 10317860 7059008 2734732 73% / none 847584 0 ...
5
votes
1answer
373 views

What's the best way to share source code between EC2 instances?

Currently I have 4 EC2 instances in amazon cloud behind a load balancer and this number will grow up to 20-30. I am looking for the best way to manage source code on all of these instances. There is a ...
5
votes
1answer
734 views

Possible to limit an EC2 key to just ec2-associate-address?

I have a regular EC2 instance with an elastic IP. The few times the instance has been stopped, I've just manually re-associated the IP with it via the AWS Management console. I'm now thinking about ...
5
votes
2answers
5k views

Amazon Web Services - How do I use IAM to restrict a single user to managing a single EC2 instance?

I would like to: Create an IAM user Restrict that user to be able to have full management over a single EC2 Instance only. Example: While the AWS EC2 account has 10 instances, the new user, ...
5
votes
2answers
658 views

CentOS, Amazon EC2, and EBS AMI

How do you go about finding the most "accepted" image for Amazon which allows you to store it as an EBS image. Specifically I'm looking for a CentOS image.
5
votes
4answers
4k views

Amazon EC2 tools for Debian?

What is the recommended way of getting command-line Amazon EC2 tools on Debian? So, basically the same as this question, but for EC2 instead of S3. Ubuntu has ec2-ami-tools and ec2-api-tools, but I ...