Last active
December 10, 2015 17:48
-
-
Save arfon/4469800 to your computer and use it in GitHub Desktop.
Spotty Process: Get all instances of a given type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Request using instance API names defined here: http://aws.amazon.com/ec2/instance-types/ | |
// curl http://spot.arfon.org/instances/m1.large | |
// Example response below | |
[{ | |
"availability_zone": "us-east-1d", | |
"current_price": 0.066, | |
"id": "50b196d2a2fc8eef10000048", | |
"name": "m1.large", | |
"pricing_history": { | |
"2012-11-23 20:04:29 UTC": "0.066000", | |
"2012-11-24 20:06:06 UTC": "0.066000", | |
"2012-11-25 20:06:27 UTC": "0.066000" | |
}, | |
"product_description": "Windows (Amazon VPC)" | |
}, { | |
"availability_zone": "us-east-1a", | |
"current_price": 0.026, | |
"id": "50b196d2a2fc8eef1000004d", | |
"name": "m1.large", | |
"pricing_history": { | |
"2012-11-23 20:04:27 UTC": "0.026000", | |
"2012-11-24 20:06:02 UTC": "0.026000", | |
"2012-11-25 20:06:25 UTC": "0.026000", | |
"2012-11-26 20:09:23 UTC": "0.026000" | |
}, | |
"product_description": "Linux/UNIX" | |
}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment