Gather metatdata on AWS from within EC2 instance.

So I need to get information about a particular set of machines in the cloud (AWS). EC2_INSTANCE_ID="`wget -q -O – http://instance-data/latest/meta-data/instance-id || die \"wget instance-id has failed: $?\"`" test -n "$EC2_INSTANCE_ID" || die 'cannot obtain instance-id' EC2_AVAIL_ZONE="`wget -q -O – http://instance-data/latest/meta-data/placement/availability-zone || die \"wget availability-zone has failed: $?\"`" test -n "$EC2_AVAIL_ZONE" || die 'cannot obtain…

CategoriesUncategorized