This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |