or ‘Saving totally the most while using EC2’
We use a couple of EC2 servers which are not permanently running, rather on user-demand only. Without wasting money for elastic ip addresses (you are charged while they are NOT attached), we make use of the random public IP provided by AWS and update our Dyndns addess for this server.
- Create a DynDNS account if you dont have one
- Create a hostname (eg. sample.mydomain.net)
- Install Inadyn
sudo apt-get install inadyn (for Ubuntu or debian)
- Add this line to a start-up script
inadyn –username myuser –password mypwd –iterations 1 –alias sample.mydomain.net
( with iterations the command is executed only once)
inadyn makes use of http://checkip.dyndns.com/ to retrieve the ip address
On top of it the server switches off automatically at nighttime (see blog entry) and the user uses a little web frontend to start the server again on his/her own.