[chris-allen-lane.com] Programming | Security | DIY

Category: devops

Amazon EC2 Instance cannot Connect to Amazon RDS Database Server

While designing a new deployment system for my company with Amazon's AWS, I stumbled onto a problem that cost me some time - I could not get my EC2 instances to connect to our Amazon RDS database servers. I figured I'd document the solution here for the sake of those to follow.

I had created two webservers, and a MultiAZ instance of an RDS server with which they were to transact. I could connect to each webserver and the RDS server directly, but I could not get the webservers to connect to the RDS. The issue ultimately ended up being related to my security groups configuration.

Deploying Wordpress: Syncing Files in a Multi-Server Installation

Recently, some of my company's WordPress sites have become so popular that I chose to migrate them onto a multiple-webserver deployment system in order to keep up with the traffic. I encountered some interesting challenges while setting this up, so I figured I'd document them here.

Installing Lubuntu 12.04 on a Samsung Series 9 Laptop

I recently reformatted my system for the first time since I originally installed Ubuntu 11.04 on it, and I want to document some of the "gotchas" I encountered. I unnecessarily lost a few hours to trial-and-error, and I hope to spare you the same frustration.

For this rebuild, I personally installed Lubuntu (with an "L") 12.04, because I hate Unity, and because gnome-panel shares too many of Unity's constraints (like only supporting four workspaces) to be useful. With that said, I'd imagine that the following advice applies to some of the other *buntus as well.

This was the process I used to install Lubuntu 12.04 on a clean system:

Installing Ubuntu on a Samsung Series 9 Laptop

Earlier this week, my trusty Toshiba Satellite died after five years of faithful service. I decided to go with the new Samsung Series 9 Laptop as its successor, with the intention of configuring the system to dual-boot into Ubuntu and Windows 7. I encountered a few brutal gotchas during the installation process, so I figured I'd document them here. (To the best of my Googling, there's not a lot of information out there on the net as of today.)

What follows is what I believe to be the shortest path to a clean installation. It is not the path that I took. Therefore, if you find that anything does not work as described, please let me know.

Video: Deploying Wordpress on Multiple Load-Balanced Servers on Amazon EC2

I gave this brief talk about deploying a high-traffic Wordpress site on EC2 in Fall 2011 at the Gainesville Hackerspace. The content discussed here can be considered a follow-up to my post on solving a file-synchronization issue when deploying Wordpress across multiple servers on EC2.