aws.networking

AWS networking functions

assoc-pub-ip

(assoc-pub-ip endpoint instance-id {:keys [machine aws], :as spec})

attach-vpc-ip

(attach-vpc-ip endpoint instance-id {:keys [machine aws], :as spec})

describe-address

(describe-address endpoint ip)

describe-eip

(describe-eip endpoint instance-id)

instance-ip

(instance-ip {:keys [aws], :as spec} endpoint instance-id)

set-hostname

(set-hostname {:keys [machine], :as spec} endpoint instance-id user)
Uses a generic method of setting hostname in Linux
(see http://www.debianadmin.com/manpages/sysctlmanpage.txt)
Note that in ec2 both Centos and Ubuntu use sudo!

update-ip

(update-ip {:keys [aws], :as spec} endpoint instance-id)
updates public dns in the machine persisted data