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

learn more… | top users | synonyms (1)

2
votes
1answer
1k views

Setting up a Rails 2.3.x app on EC2 for easy scalability

I'm running a simple rails stack on a single dedicated machine. We're reaching our full capacity and have absolutely no setup for scaling, just one app on one machine. I did some research and came up ...
6
votes
1answer
2k views

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 ...
42
votes
4answers
19k views

Why don't EC2 ubuntu images have swap?

I started a couple servers on EC2 and they don't have swap. Am I doing something wrong or is it that the machines just don't have any?
4
votes
1answer
576 views

Cost and Trade-offs of EC2 vs Hosted VPS for a LAMP site with 1M uniques

Does anyone have first hand experience with EC2 vs Hosted VPS cost analysis and trade-offs? It's for a LAMP site with 1M monthly uniques. It would be great to hear some opinions and any analysis ...
7
votes
2answers
2k views

Is it possible to have a 100% secure virtual private server?

I am curious if it is possible to have a VPS that has data on it that is not readable by the hosting provider, but is still usable on the VPS. Obviously there are some things that you could do to ...
2
votes
8answers
2k views

Mail Server using Postfix

I have currently set up my web application on Amazon EC2 server. As a well known fact sending email from EC2 has a problem. As a cheap and long lasting solution instead of using "authsmtp" is it ...
0
votes
2answers
733 views

ec2, ping and security settings

Got a noob question about security settings on AWS ec2 instance. I've set up an instance with Tocat7 ( ami-95da17fc ) and I have a little issue. If I ssh into the instance and do ping -c 2 -p 80 ...
127
votes
13answers
350k views

Why do I get “Permission denied (publickey)” when trying to SSH from local Ubuntu to a Amazon EC2 server?

I have an instance of an application running in the cloud on Amazon EC2 instance, and I need to connect it from my local Ubuntu. It works fine on one of local ubuntu and also laptop. I got message ...
33
votes
4answers
16k views

Do I need to run ntpd in my EC2 instance?

I'm working on getting some servers running in the EC2 environment and I'm noticing some errors with ntpd trying to sync (using CentOS). I was reading on this site and the impression I get is that I ...
12
votes
3answers
5k views

updates in amazon-ec2 ubuntu 10.04 server

I keep getting this message when I logged into my server in ec2 via ssh think this is called MOTD 43 packages can be updated. 22 updates are security updates. but I have already done sudo ...
12
votes
4answers
6k views

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 ...
6
votes
7answers
17k views

Amazon EC2 - No SSH After Reboot, Connection Refused

I've replicated this two or three times, so I'm guessing there's something wrong with what I'm doing. Here are my steps: Launch new instance via EC2 Management console using: Ubuntu Server 13.10 - ...
4
votes
3answers
3k views

Can't change assigned key pair on amazon ec2 instance

I can't seem to find the option to assign a newly created key pair to an amazon ec2 instance after deleting away the original key pair. I wanted to "deny" the first key pair from access to the ...
18
votes
2answers
2k views

Is there a Windows equivalent of Unix 'CPU steal time'?

In order to assess performance monitoring accuracy on virtualization platforms, the CPU steal time has become an increasingly relevant metric - see EC2 monitoring: the case of stolen CPU for an ...
9
votes
3answers
2k views

What's the easiest way to back up EC2 instances automatically?

I'm worried I might log in one day and my fully configured instance has been removed. I would like to be able to back it up daily to S3 but frustratingly this is not a simple setting in the console. ...
3
votes
3answers
2k views

Multiple domains on Amazon AWS EC2

I am a bit confused on how I can use Amazon AWS to host multiple websites. I under stand how to host a website on there however I am only allowed up to 5 elastic ip addresses. So how would I host more ...
4
votes
3answers
8k views

Recover EC2 .pem file?

I just reinstalled my machine and forgot to backup my ec2 .pem file... Is there any way to download this again from amazon? I can't find it anywhere.
4
votes
4answers
2k views

root locked out of EC2

I was in the process of disabling root logins on an AWS EC2 instance. Right after setting PermitRootLogin no and restarting sshd, I closed the terminal on accident -- before setting up users with sudo ...
2
votes
2answers
295 views

amazon ec2 instance gets timed out

I build amazon ec2 instance as following steps given on http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html Also followed this: ...
1
vote
1answer
2k views

Corosync on EC2 multiple subnets

I'm working on a HA solution for apache/mysql and i'm going the DRBD with pacemaker and corosync route... I seem to be having an issue with getting my corosync service to see the other server. I'm ...
4
votes
3answers
3k views

The site is using outdated security settings that may prevent future versions of Chrome from being able to safely access it

We're using an AWS ELB to do SSL termination and are having an issue where Chrome is displaying "https" in red with a strikethrough. It says "The site is using outdated security settings that may ...
1
vote
1answer
583 views

Need a recommendation for shared storage on auto-scaling ec2 w/ scalr

I have come across so many answers to this question that I am completely lost! I am moving our 2 sites to a load balanced ec2 system with scalr as our cloud manager. Now the question is coming up ...
1
vote
2answers
734 views

Automate Amazon EBS Snapshot creation?

Once in a while I would go to http://aws.amazon.com/console and manually right click my EBS volume and create a snapshot. This is kind of tedious and I would forget sometimes. Is it possible to ...
0
votes
3answers
2k views

ERROR: The partition with /var/lib/mysql is too full!

I am running in a problem here I have a linux instance running on EC2. All was working fine till last night. Today morning it showed me some error stating that there was no disk space to write of ...
31
votes
3answers
23k views

What's best practice for communication between Amazon EC2 instances?

I've been setting up Amazon EC2 instances for an upcoming project. They are all micro instances, running Ubuntu Server 64bit. Here's what I've setup so far: Web Server -- Apache Database Server ...
21
votes
3answers
8k views

How can I deploy a scalable, reliable haproxy cluster on Amazon EC2?

We need some more advanced functionality than ELB provides (mostly L7 inspection), but it's not obvious how to handle things like heartbeat and high availability with something like haproxy using EC2. ...
13
votes
2answers
22k views

EC2/Route53: How do I assign my new domain name to an instance?

I have an EC2 instance. It's up and running with an Amazon IP that looks something like this: //ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com/ I am sure it works fine. I bought a domain and then set ...
7
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 ...
6
votes
4answers
8k views

Why are Amazon EC2 Elastic IPs encouraged to be used with a CNAME rather than an “A” record?

I am setting up a server on EC2 that will be used by people that will be freaked out when they see ec2-111-111-111-111.compute-1.amazonaws.com in the URL bar. I know this would be solved by using an ...
10
votes
2answers
8k 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 ...
8
votes
3answers
21k views

how do i set the dns server on godaddy with AWS?

I have a domain name on godaddy and i also have a amazon web services account. I have an EC2 instance and i want to change the dns nameserver on the godaddy control panel to aws and i have no idea ...
5
votes
3answers
7k views

Nginx set_real_ip_from AWS ELB load balancer address

I have a set of Nginx servers behind an Amazon ELB load balancer. I am using set_real_ip (from the HttpRealIpModule) so that I can access the originating client IP address on these servers (for ...
9
votes
4answers
8k views

Is it possible to move an AWS EC2 AMI from one region to another region and if so how?

I have an AWS EC2 AMI in the EU region. I want to move it to the US region. The root device type is EBS and the OS is Linux. Is it possible to transfer the image to the US region and if so how?
14
votes
3answers
10k views

Create an AWS HVM Linux AMI from an Existing Paravirtual Linux AMI

Is it possible to create a hardware virtual machine (HVM) AMI from an existing paravirtual (PV) AMI. My initially thought was to start a new PV instance and use the ec2-create-image command to ...
8
votes
1answer
7k views

Flush processes consume too much of CPU

The Server is EC2 Instance, it stands for saving files to NAS (NFS) from HTTPD. The processes like flush-0:32 consume over %90 of CPU and load average: 65.50, 64.02, 66.59. According the graph, it's ...
4
votes
1answer
7k views

EC2 FileZilla login OK but no write or delete access

I am a total Apache noob, and after much hair-pulling and gnashing of teeth finally got SFTP access to new EC2 instance in passive mode. Can login only as "ec2-user", or "root" with no password, but ...
4
votes
1answer
562 views

Is it possible to obtain a copy of Amazon Linux for use outside AWS

How difficult (if at all possible) would it be run a copy of Amazon Linux on a private physical server or hypervisor (Virtualbox/KVM) ? (I am thinking something based in a office/home) I realise it ...
4
votes
2answers
3k views

Setup Domain with Amazon EC2

I have domain from name.com and I want to add in Amazon EC2 server. I got Public DNS ec2-xxx-xx-x-xxx.compute-1.amazonaws.com Can I add A-Record in this DNS ? When I add Elastic IPs , I can't use ...
0
votes
1answer
1k views

Can someone help me figure out an efficient auto scaling configuration? [closed]

This is my first time releasing a web app. I'm going to using Django with Nginx and a couple of other scripts that have been piped. I wanted to know which auto scaling strategy I can use. Right ...
11
votes
4answers
8k views

What does %st mean in top?

Here is an example from my top: Cpu(s): 6.0%us, 3.0%sy, 0.0%ni, 78.7%id, 0.0%wa, 0.0%hi, 0.3%si, 12.0%st I am trying to figure out the significance of the %st field. I read that it means ...
7
votes
4answers
5k views

How to get the amount of free disk space with CloudWatch?

Is it possible to get the amount of free disk space (df) with CloudWatch? If so, what metric represents the free disk space?
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
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?
0
votes
2answers
506 views

Dig -x equivalent for AWS Route 53

I have an IP number associated with an AWS Elastic IP (EIP). I'd like to know, what DNS records in my Route 53 domain are associated with that A record's IP. In a traditional DNS service, I would ...
16
votes
1answer
758 views

can't type lower cased e in amazon ec2 (Amazon Linux)

After a few days of operation on my new ec2 build, the following happens: I log into SSH, everything is fine, I do my coding I return the next day, and log into SSH I cannot type a lower cased e ...
11
votes
2answers
5k views

What is ephemeral storage good for?

I have been reading about the ephemeral storage with amazon ec2 and am trying to figure out what is the best way to use the 100s of GBs they supply you. If it isn't persistent, what can it be good ...
11
votes
3answers
14k views

How to use Amazon Elastic IP?

I get a new elastic IP, I attach it to an instance, but it doesn't work? I can't ping the IP from my local computer either? Am I missing something here? How do I use Amazon Elastic IP? When is a new ...
8
votes
1answer
5k views

AWS EC2 migration to new instance type with SSD Drives

I have MySQL running on an m1.xlarge instance with a 100GB EBS volume holding the data files. I would like to migrate to a m3.2xlarge instance and place the data files on the new 2 x 80GB SSD drives. ...
8
votes
1answer
2k views

How to determine actual size of an amazon snapshot?

Amazon EBS snapshots capture changed blocks from a baseline, so snapshots will often be much smaller than the source volume. Billing is based on the actual size, which is nice. However, I cannot find ...
8
votes
2answers
4k views

EC2 - Shared Storage - S3FS or EBS?

Building my web service onto EC2 right now and have a single instance behind a load balancer. I will of course cater for multiple instances. My initial idea was to run all the instances a dumb ...