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

learn more… | top users | synonyms (1)

8
votes
2answers
3k views

Prevent Amazon EC2 Time zone from reverting back on yum update

I use an Amazon EC2 server instance that runs a distro called Amazon Linux AMI. (I've read that it is based on CentOS/Red Hat). My specific version is the 2012.09 release. Anyway, I was able to ...
8
votes
2answers
2k views

Is it possible to force Re-creation of EC2::Instance or RDS::DBInstance in amazon cloudformation?

It's possible to force the re-creation of a EC2 or RDS instance using cloudformation stacks? My stack goes stuck in a point where simply destroying and creating the resource will fix it, instead of ...
8
votes
4answers
7k views

Windows desktop (XP, Vista or Win7) EC2 AMI for QA testing

I need to perform QA testing for Windows based applications on a Windows desktop client and I would like to know if EC2 supports Windows images that are NOT server based (e.g. Server 2003). I have ...
8
votes
3answers
6k views

EC2 Update my existing AMI

I'm using Elastic Load Balancing to load balance my Auto Scaling Group, for that I have a private AMI that hold my application server (Tomcat) and my web app deployed to it as war ... Now everything ...
8
votes
4answers
891 views

External load balancer solutions between EC2 and Rackspace

I have a website primarily hosted on EC2 with the backends (MySql) replicated async to a Rackspace store. I am also planning to have a suite of web server, cache & db on standby at Rackspace in ...
8
votes
2answers
2k views

MMS gets hostname from uname and can't connect to it

I'm trying to get 10gen's MongoDB Monitoring Service monitoring my 3-node replica set. The replica set running in an AWS VPC. Each node runs on a different [virtual] machine. Assume their IPs are ...
8
votes
3answers
16k 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 ...
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 ...
8
votes
5answers
1k views

High load due to I/O wait in Ubuntu 12.04 on EC2 instance

I am using Ubuntu server 12.04 , having trouble finding cause of load, I have seen change in response time of server from past week after reading Linux Troubleshooting, Part I: High Load It seems ...
8
votes
1answer
745 views

How do you create large, growable, shared filesystems on Linux at AWS?

What are acceptable/reasonable/best ways to provide large, growable, shared storage at AWS, exposed as a single filesystem? We're currently making 1TB EBS volumes ~biweekly and NFS exporting with ...
8
votes
1answer
2k views

NFS (with Kerberos) mount failing due to “Server not found in Kerberos database” error

When running: sudo mount -t nfs4 -o sec=krb5 sol.domain.com:/ /mnt I get this error on the client: mount.nfs4: access denied by server while mounting sol.domain.com:/ And on the server syslogs I ...
7
votes
2answers
5k views

Nginx Solution for AWS Amazon ELB Health Checks - return 200 without IF

I have the following code that is working on Nginx to keep the AWS ELB healthcheck happy. map $http_user_agent $ignore { default 0; "ELB-HealthChecker/1.0" 1; } server { location / { if ...
7
votes
2answers
9k views

Apache / httpd not starting automatically on boot

I have apache2 installed on Amazon Linux AMI release 2012.03. I'm able to start it manually just fine, without any errors using /etc/init.d/httpd start. However, it doesn't start automatically when ...
7
votes
3answers
5k views

Amazon EC2 Backup Strategy With Restrictions (little to no snapshots can be taken?)

Similar questions have been asked but I need to know what would be recommended under the circumstances, to know if I'm missing something in my understanding of using EC2. A small startup is running ...
7
votes
2answers
4k views

Is RAID 1 overkill on Amazon EBS drives in terms of reliability?

My thinking behind this is that RAID 1 creates two or more copies of the data on multiple EBS drives. Yet, aren't Amazon EBS disks virtually fail-safe because they live on multiple physical drives? So ...
7
votes
1answer
632 views

How to load balance sftp instances on AWS

I like to know is it possible to load balance sftp servers in AWS. I have 2 servers, and each of my servers are using s3fs-fuse to mount the same S3 bucket onto a mount point. Both of my ec2 ...
7
votes
3answers
692 views

What is the ip range of EC2

I'd like to setup a rule to block ssh request from EC2 since I've been seeing a large amount of ssh based attack from there and was wondering if anyone knew what their IP ranges are. EDIT: Thank you ...
7
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 ...
7
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 ...
7
votes
2answers
11k views

proxy:error AH00898: Error during SSL Handshake with remote server

I have a server that acts as a front-end for a cPanel mailserver in a network. The apache proxy on the front-end server ran for 152 days without fault then suddenly I now get 500/502 errors when using ...
7
votes
5answers
7k views

How do I mount an EBS root volume to a windows instance in Amazon EC2

So basically, I created a large windows server for development, and then I created a micro windows server for production. I set up everything how I wanted it on my development server, and then i ...
7
votes
2answers
4k views

IP changed when EC2 instance stopped and started

I have a strange issue here regarding and EC2 instance. I had just stopped and started an EC2 instance for windows after expanding the boot drive, not after I had started the instance, the IP it was ...
7
votes
3answers
4k views

Which aws zone to choose if website traffic will be from india only

I am going to make my website live on AWS servers and 100% of intended website audience will be from India only. As amazon offers you to get services from various zones, I was wondering is there any ...
7
votes
2answers
12k views

Is mounting S3 buckets directly into EC2 instances safe?

as the title of my question says, I would like to know whether this is a good practice or not, I know I can mount it in an EC2 instance but I was wondering if, as I will be adding more instances to ...
7
votes
2answers
1k views

Convert file system format on AWS EC2 ephemeral storage disk from ext3 to ext4

I have an instance-store EC2 instance with Ubuntu 11.04 i386. At present my disk partition looks like this: Filesystem Size Used Avail Use% Mounted on /dev/xvda1 9.9G 529M ...
7
votes
3answers
3k views

EC2 Auto-Scaling with Spot and On-Demand Instances?

I'm looking to optimize the cost of our auto-scaling EC2 groups by having them launch spot instances instead of on-demand instances. What I really want is to be able to keep some servers in the group ...
7
votes
2answers
6k views

Setting Up ELB with SSL - What is Backend Authentication?

I started setting up Amazon's Elastic Load Balancing Service for my server pool and I need to setup HTTPS/SSL. I have all my SSL Certificates setup, but then I come to the step for backend ...
7
votes
3answers
9k views

Why can't I ssh or ping my brand new Amazon EC2 instance?

I just created a free EC2 instance with all the defaults. It says it's running in the AWS Management Console. On the "Instance Actions" menu, I click "Connect". I copy the DNS name provided (looks ...
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 ...
7
votes
1answer
1k views

Does anyone have any experience when it comes to speed of Amazon RDS vs MySQL on a Small server?

EC2 Small vs Amazon RDS - which is faster for MySQL? (I have one database, well-indexed and tuned. About 10,000 rows on each table.) How's the performance like?
7
votes
1answer
3k 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 ...
7
votes
3answers
4k views

Which permissions/policies for IAM role to be used with CloudWatch monitoring script

With CloudWatch monitoring script (mon-put-instance-data.pl) it's possible to specify a IAM role name to provide AWS credentials (--aws-iam-role=VALUE). I'm creating a IAM role for this purpose (to ...
7
votes
2answers
8k views

How can I login amazon ec2 with root directly in putty or winscp?

0 down vote favorite 1) How can I login amazon ec2 with root directly in putty?? each time i need to su - root first and change to root...is there any other ways?? 2) How can I login amazon ec2 ...
7
votes
3answers
4k views

Accessing storage on an EC2 instance?

I am using a large EC2 instance but just realized that I don't have the space promised. I only get 8 gigs when it says I should have 850 GB. From what I understand two extra 420 gb drives should be ...
7
votes
3answers
2k views

Amazon EC2 VPC: NAT instance download speed performance drop

I have a set of servers inside Amazon EC2 in VPC. Inside this VPC I have a private subnet and a public subnet. In the public subnet I have set up a NAT machine on a t2.micro instance that basically ...
7
votes
4answers
6k views

How to automate an Amazon EC2 instance startup, execution of some commands and shutdown?

I need to download 100 GB of files (it’s in about 150 files) within a 7 day period before they expire. The download is rate-limited by the host so it takes MUCH longer than the theoretical transfer ...
7
votes
3answers
2k views

Windows Password won't decrypt on AWS EC2 even with the correct private key

I created a new Windows instance on AWS EC2, using a keypair I created by uploading my public key from my local machine. The instance launched fine, but it won't decrypt the password. It reports: ...
7
votes
3answers
3k views

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

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

Good methods for monitoring EC2 instances

I'd like to hear your approaches for monitoring Linux instances running in EC2. I'm very accustomed to using Nagios to monitor all manner of aspects of a Web-based application's ecosystem, but its ...
7
votes
2answers
650 views

Can I throttle tar without ionice?

My tar command tar --remove-files -cvif 2011-08-02_14-05-09.tar 2011-08-02_14-05-09 Writes 80MB/s. That's beyond the capacity we can spare because MySQL starts queuing up writes and eventually we ...
7
votes
6answers
5k 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?
7
votes
1answer
2k views

How do I scale my EC2 instance?

I'm very new to server configurations and Linux in general, so please bear with me: I have a small EC2 instance running a LAMP server on Ubuntu 10.04 LTS. I'm completely baffled as to how I would ...
7
votes
2answers
5k 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?
7
votes
1answer
6k views

Creating an EC2 AMI Image from a running instance vs. from a volume snapshot

I want to backup a Linux-based EC2 instance while it is running with no downtime, and then later on launch a new instance. (The instance is running a web server and Postgres database.) I found there ...
7
votes
2answers
11k 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 ...
7
votes
1answer
874 views

Has anyone achieved Level 1 PCI compliance on AWS?

All the FAQs, documents and statements published by AWS aside, did any Level 1 merchant actually achieve PCI compliance on AWS yet? We're evaluating moving some of our services to EC2/VPC, but our ...
7
votes
2answers
3k views

“A new version of /boot/grub/menu.lst is available” when upgrading Ubuntu on an AWS server

I just tried to do a sudo do_release_upgrade on an AWS EC2 Ubuntu 13.10 server to upgrade to 14.04. All was going well until I got the following message: A new version of /boot/grub/menu.lst is ...
7
votes
1answer
3k views

xen:balloon: reserve_additional_memory: add_memory() failed: -17

We're running Ubuntu 14.04 on an EC2 virtual machine. I've been seeing a lot of these errors in our kernel log: [ 704.032085] xen:balloon: reserve_additional_memory: add_memory() failed: -17 [ ...
6
votes
4answers
1k views

Easy way to convert custom 32-bit AMI into 64-bit one?

I have customised (EBS-backed) AMI for running a demo version of an application of ours. (The AMI contains Ubuntu 11.04 with a Tomcat & MySQL setup for the app itself, and Jenkins for easy ...