rblreg
rblreg

Reputation: 1

Get the OS of an instance from an AMI

Is it possible to get the OS type from an AWS AMI via Boto?

ie. MSWinSQLWeb, RHEL, SLES, LINUX/UNIX, etc....?

-RBL

Upvotes: 0

Views: 723

Answers (1)

bosnjak
bosnjak

Reputation: 8624

Not exactly sure what you are trying to achieve, but this may be it:

boto.ec2.get_only_instances()

The returned Instance objects will have some informative properties, like:

  • platform – Platform of the instance (e.g. Windows)
  • kernel – The kernel associated with the instance.
  • architecture – The architecture of the image (i386|x86_64).
  • product_codes – A list of product codes associated with this instance.

Upvotes: 1

Related Questions