Skip to content

Instantly share code, notes, and snippets.

@bakins
Created April 6, 2015 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bakins/5cad94d412d370d13a03 to your computer and use it in GitHub Desktop.
Save bakins/5cad94d412d370d13a03 to your computer and use it in GitHub Desktop.
ZONE=us-east-1
AWS_IMAGE=$(curl -s -L http://alpha.release.core-os.net/amd64-usr/current/coreos_production_ami_all.json | python -c "import json,sys;obj=json.load(sys.stdin);print filter(lambda t: t['name']=='${ZONE}', obj['amis'])[0]['hvm']")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment