Skip to content

Instantly share code, notes, and snippets.

@thefron
thefron / resize_instance.sh
Created November 25, 2011 13:39
EC2 instance resizing script
#!/bin/bash
# resize_instance.sh
# Resize specified instance with given size
# resize_instance.sh [instance_id] [size]
# This script is based on http://alestic.com/2010/02/ec2-resize-running-ebs-root
E_BADARGS=65
if [ ! -n "$1" ]
then