Forum Archive

Credentials for AWS/Boto

krash

Does anyone have a preferred method for handling AWS credentials for work in boto3? Especially when working with code stored in GitHub via Working Copy?

Basically, I work on the code from a regular Mac and from my iPad, so I don't want the credentials hard coded or loaded in a file on GitHub.

I tried creating a ~./aws/credentials file but that didn't seem to work. Is there a way to set environment variables that last between sessions? (or that I can set quickly with a script). Or a file location that someone has found to work?

Thanks

mikael

I import them from a separate .py file which is in the same directory, but not in GitHub.

eddo888

install StaSh then you can mkdir ~/.aws
and edit ~/.aws/credentials

https://forum.omz-software.com/topic/1919/stash-shell-like-an-expert-in-pythonista