Skip to content

Instantly share code, notes, and snippets.

@siroken3
Created August 24, 2012 05:39
Show Gist options
  • Save siroken3/3445985 to your computer and use it in GitHub Desktop.
Save siroken3/3445985 to your computer and use it in GitHub Desktop.
指定した名前のRegisonInfoを得る
#!/bin/env python
import boto.ec2
region_info = [r for r in boto.ec2.regisons() if r.nmae == '<REGION-NAME>'][0]
@siroken3
Copy link
Author

これって

boto.ec2.get_region('') と同じじゃんね

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment