mercredi 14 octobre 2015

boto3 aws api - Listing available instance types

Instance types: (t2.micro, t2.small, c4.large...) those listed here: http://ift.tt/1ek8FYG

I want to access a list of these through boto3. something like:

conn.get_all_instance_types()

or even

conn.describe_instance_types()['InstanceTypes'][0]['Name']

which everything seems to look like in this weird api.

I've looked through the docs for client and ServiceResource, but i can't find anything that seems to come close. I haven't even found a hacky solution that lists something else that happen to represent all the instance types.

Anyone with more experience of boto3?




Aucun commentaire:

Enregistrer un commentaire