Re: [boto-users] Caching of credentials???

57 views
Skip to first unread message

Mitchell Garnaat

unread,
Mar 14, 2013, 11:57:34 AM3/14/13
to boto-...@googlegroups.com
Hi -

After you change the .boto file, are you starting up a new Python interpreter?  Or using the same one?  The boto config file is read once when the boto module is first imported and is cached in memory during that session.  I won't pick up changes made to the file after that.  You would have to start a new session to get the changes.

Mitch

On Wed, Mar 13, 2013 at 7:17 PM, Matt Veitas <mve...@gmail.com> wrote:
I am new to using boto, and am noticing some strange behavior with credentials. I am trying to connect to two different AWS accounts from the same laptop. I was able to connect to account #1 just fine and run some commands. I then proceeded to replace the ~/.boto file with the credentials from account #2. When I go and run a command to get all the instances, I am getting them from account #1. I even took steps to remove the ~/.boto from the file system and still getting the same results and not getting any errors for authentication.

I am somewhat new to Python, so this could be something within the Python interpreter. Just as an FYI, I am on a Mac running Python 2.7.2 with boto 2.8.0 that was installed using 'pip install boto'.

-Matt 

--
You received this message because you are subscribed to the Google Groups "boto-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to boto-users+...@googlegroups.com.
To post to this group, send email to boto-...@googlegroups.com.
Visit this group at http://groups.google.com/group/boto-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages