Skip to content

Instantly share code, notes, and snippets.

@l4u
Created August 1, 2015 09:13
Show Gist options
  • Save l4u/4babc68a6c875b78bafc to your computer and use it in GitHub Desktop.
Save l4u/4babc68a6c875b78bafc to your computer and use it in GitHub Desktop.
spot instance pricing history ec2
aws ec2 describe-spot-price-history --instance-types g2.8xlarge --region us-east-1 --product-descriptions 'Linux/UNIX (Amazon VPC)' --start-time $(date +"%Y-%m-%dT%H:%M:%SZ") | jq '.SpotPriceHistory[] | {price: .SpotPrice, zone: .AvailabilityZone}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment