Skip to content

Instantly share code, notes, and snippets.

View leonardMel's full-sized avatar

Leonard.Li leonardMel

  • Intelematics
  • Melbourne
View GitHub Profile
@leonardMel
leonardMel / autoscale_sample
Last active August 29, 2015 14:27 — forked from liamf/autoscale_sample
Demonstrates using patched boto to create an autoscaling group of servers, scaled up/down by CPU Utilisation
#################################################################################
# Import modules
#################################################################################
import os
import time
import sys
import socket
import string
@leonardMel
leonardMel / autoscaling_boto.py
Last active August 29, 2015 14:27 — forked from numan/autoscaling_boto.py
Example of setting up AWS auto scaling using boto API
"""
The MIT License (MIT)
Copyright (c) 2011 Numan Sachwani
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions: