Common
Python Boto – see what configuration is being used
10. September 2014
0

There might be a bit of confusion about which config is being used by python-boto. The Homedir .boto file or /etc/boto.cfg or something else. You can test this directly by doing the following:

$ python
Python 2.6.8 (unknown, Mar  9 2014, 22:16:00)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from boto.pyami.config import Config
>>> config = Config()
>>> config.dump()
[DEFAULT]
debug = 0
working_dir = /mnt/pyami

[DynamoDB]
region = eu-west-1

[Credentials]
aws_access_key_id = xxx
aws_secret_access_key = xxx

[Boto]
debug = 1

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.