Setup Scalable and Fault-tolerant App with Custom Domain on Amazon EC2

Recently I wrote a couple of Node.js apps that use Aerospike and I’ve deployed them on Amazon EC2. In the end, everything seems to have worked out fine since there are a ton of resources out there to help you through the deploy process, but I found those resources to be scattered all over the place. So I thought of taking a stab at putting together a concise set of steps that can help you setup a Node.js app on Amazon EC2 such that it can scale up and down, is fault-tolerant and accessible via a custom domain. First and foremost, you must have a Node.js app you’ve built and are ready to deploy. It is also presumed that you have an AWS Account and working knowledge of Amazon EBS and Elastic Load Balancing. If not, please visit the links below under Useful Resources section. Here We Go Create EBS application with configuration — 64bit Amazon Linux 2014.09 v1.0.9 running Node.js Deploy your Node.js app via EBS — if it fails (which it does from time to time!), scp your Node.js app files over to /var/app/current on the EBS instance If scp’ing your files over: /var/app/current folder on the EBS […]