AWS Tools and Scripts
Dynamic DNS
- Script to update a Route53 (DNS) record when a server IP address changes
- Option 1: See route53update.sh adding "@reboot /path/to/script/route53update.sh" to your cron list.
- Option 2: Another option/solution
- This concept is handy when you host lots of servers and you do not want to pay for lots of static IPs
- You add a @reboot entry in your user's crontab to execute this script when the server boots
Resize AWS EC2 disk/volume/block
- Reference: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html
- Notes
- The below commands assume drive "xvda" - which is the primary drive. If you are growing drive b, change accordingly.
- See existing details - execute commands:
- Go to AWS => Console => Volume and set new size of the volume you wish to grow
- Grow the partition - execute terminal command:
- sudo growpart /dev/xvda 1
- See new details - execute terminal commands:
- Grow the file system - execute terminal command:
- sudo resize2fs /dev/xvda1
- See new details - execute terminal command: