Ruby script for amazon aws tool