Skip to content

Instantly share code, notes, and snippets.

@mursts
Created June 25, 2013 17:35
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 mursts/5860520 to your computer and use it in GitHub Desktop.
Save mursts/5860520 to your computer and use it in GitHub Desktop.
Amazon SimpleDBのドメインを作成する。
#!/usr/bin/env python
# coding: utf-8
import boto.sdb
def main():
conn = boto.sdb.connect_to_region('ap-northeast-1')
if conn is None:
print 'connect failed.'
return
conn.create_domain('jp.mursts.sdb.glacier_backup')
print conn.get_all_domains()
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment