Is there a way for a running instance, via the meta-data facility to find out the ec2 account name that the instance is running under?
Looking up the meta-data service yields the following items we can query:
ami-id
ami-launch-index
ami-manifest-path
hostname
instance-id
local-ipv4
public-keys/
reservation-id
security-groups
None of which satisfy this - any ideas?
Pass the EC2 account data you need as user data to the instance. You can retrieve the user data passed to an instance by running
curl http://169.254.169.254/1.0/user-data
on the instance.