blaze / odo

Data Migration for the Blaze Project
http://odo.readthedocs.org/
BSD 3-Clause "New" or "Revised" License
1k stars 138 forks source link

S3 problem: profiles for assuming AWS roles do not appear to work (boto3 problem?) #578

Open brettc opened 7 years ago

brettc commented 7 years ago

I need to get data from a S3 bucket that requires me to assume a role.

I have configured my setup as per aws instructions and have a profile called "dev". I then export AWS_PROFILE=dev and this works fine with the aws cli, asking for an MFA when required and caching the results in the .aws/cli/cache folder.

I assumed I could do this in my python program (in the same environment) odo('s3://some-bucket/data.csv', 'sqlite:database.db::data')

And it would also use the profile. But it seems not to find it, as I get a boto.provider.ProfileNotFoundError: Profile "dev" not found! on line 296 of boto/provider.py.