EC2 Server on demand without elastic IP

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.

Advertisements

One thought on “EC2 Server on demand without elastic IP

  1. Pingback: Running EC2 spot instances | The JavaDude Weblog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s