Created
August 24, 2012 05:39
-
-
Save siroken3/3445985 to your computer and use it in GitHub Desktop.
指定した名前のRegisonInfoを得る
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
#!/bin/env python | |
import boto.ec2 | |
region_info = [r for r in boto.ec2.regisons() if r.nmae == '<REGION-NAME>'][0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
これって
boto.ec2.get_region('') と同じじゃんね