Install Nginx on CentOS 6 and Amazon Linux AMI

This how to guide details the process to install Nginx on CentOS 6 and Amazon Linux AMI.

Nginx (pronounced engine-x) is gaining popularity as an alternative to using Apache. I won’t weigh in on the argument as to which is better, as they each have their own strengths and weaknesses which I’m sure there are plenty of other documents available on the internet which discuss these at great length. Instead I will show you a simple way to get up and running with Nginx on CentOS or Amazon Linux AMI.

Continue reading…

Nice and Simple AWS EC2 Start Stop Script – Python

Here is a nice and simple AWS EC2 start stop script written in Python and run from the command line. The parameters are just start|stop and the name of your instance.

I’ve written it so it uses the tag Name instead of requiring the specific instance ID. The script’s ideal usage may be to schedule the start|stop of an instance at particular times of the day. So you might have a test server you use during 10AM and 3PM Monday to Friday. With this script you could setup a scheduled task on a remote computer to start|stop the instance based on your schedule, saving you money!

Prerequisites

In order to run this script you’ll need to have Python and the AWS library Boto installed on your computer. Remember this can be any computer with an internet connection (ideally not the EC2 instance you plan on stopping/starting). The script will run on Linux and Windows.

I’ve previously written guides on installing Python and Boto into Linux environments. If you use Windows, you will find many guides stepping you through this process.
Continue reading…

Install Python Boto on CentOS 6

I’ll quickly take you through installing Python & Boto on CentOS 6 for use with Amazon Web Services (AWS).

Boto is an interface to access all of the Amazon Web Services via the Python programming language. Using Boto you can write some handy scripts to automate simple things like starting or stopping EC2 instances or taking regular snapshots of your servers..

All the syntax listed here is executed via the command line. Simply open a terminal window and you’re good to go

Installing Python and Python development libraries:

I install the python-devel package as you’ll find you may require them in the future when attempting to install additional Python packages.
Continue reading…

Setup Python / Boto for AWS on Ubuntu 13.04

I’ll quickly take you through configuring Ubuntu 13.04 so you can use Python and Boto with Amazon Web Services (AWS).

Boto is an interface to access all of the Amazon Web Services via the Python programming language. Using Boto you can write some handy scripts to automate simple things like starting or stopping EC2 instances or taking regular snapshots of your servers..

All the syntax listed here is executed via the command line. Simply open a terminal window and you’re good to go

Installing Python and Python development libraries:

I install the python-dev package as you’ll find you may require them in the future when attempting to install additional Python packages.
Continue reading…