Created
March 24, 2018 00:03
-
-
Save paulochf/8c17c3ab92d1dba162f8cd2d6f1879f8 to your computer and use it in GitHub Desktop.
Use python s3fs to connect to AWS using specific profile (already in ~/.aws/)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from s3fs.core import S3FileSystem | |
s3 = S3FileSystem(anon=False, profile_name="your-profile-name") | |
print(s3.ls("s3://your-bucket/some-folder")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
s3 = s3fs.core.S3FileSystem(profile="franz")