A script that will easily perform different common scenarios on aws instance using ec2-tools.
- Start ec2 instance (optional : attach ip after starting)
- Stop ec2 instance
- Resize ebs volume on instance ( Detach volume, make snapshot, make new volume from snapshot with new size, attach new volume to instance )
- Change instance type ( -t t1.micro ,m1.small , etc.. )
- resize instance to 40 gb `./awscripts.sh -a resize -s 40 -i i-12345 `
- Change instance type and attach ip `./awsciprts.sh -a retype -t t1.micro -i i-12345 -e 123.123.123.123`
- Start with ip attached `./awscripts.sh -a start -i i-12345 -e 123.123.123.123`
- Eric Hammond for resize commands @ http://alestic.com/2010/02/ec2-resize-running-ebs-root
- ADNAM for script scaffold @ https://github.com/adnam/bash-scaffold