Added instance dns information when running on amazon

This commit is contained in:
Simon Pamies committed 2013-10-31 14:40:01 +01:00
1 parent e52241d798
commit dc922c8eb0
1 file changed
+1
+1
View File
@@ -60,6 +60,7 @@ if [[ ! -z "$ON_AMAZON" ]]; then
DEPLOY_TO=server
INSTANCE_NAME=`ec2-metadata -i | cut -f2 -d " "`
INSTANCE_IP4=`ec2-metadata -v | cut -f2 -d " "`
INSTANCE_DNS=`ec2-metadata -p | cut -f2 -d " "`
INSTANCE_ID="$INSTANCE_NAME ($INSTANCE_IP4)"
fi