[ec2-beta] Can I retrieve the current cost of a running instance?

Andreas Hasenack andreas at canonical.com
Wed Feb 4 11:44:56 GMT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey Dustin,

Dustin Kirkland wrote:
> On Tue, Feb 3, 2009 at 7:33 PM, Eric Hammond <ehammond at thinksome.com> wrote:
>> If you're measuring on your own, note that normal Linux system uptime is measured from
>> the most recent reboot. The instance start time is available through the EC2 API (and
>> possibly the instance meta-data).
> 
> Thanks, Eric.
> 
> Okay, and this meta-data, where can I find this?

Here:
http://docs.amazonwebservices.com/AWSEC2/latest/DeveloperGuide/index.html?AESDG-chapter-instancedata.html

Basically, you do stuff like:

$ curl http://169.254.169.254/2008-12-01/meta-data/ami-id; echo
ami-2bb65342



- --
Andreas Hasenack
andreas at canonical.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmJf7UACgkQeEJZs/PdwpCwjQCgyPCZArNsFtZDn2wkZH7nrbf9
k8EAnjatAtMgbsNWHlD8x7tAbNNdE4FQ
=WTNH
-----END PGP SIGNATURE-----




More information about the Ec2-beta mailing list