Skip to content

Instantly share code, notes, and snippets.

@paulochf
Created March 24, 2018 00:03
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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/)
from s3fs.core import S3FileSystem
s3 = S3FileSystem(anon=False, profile_name="your-profile-name")
print(s3.ls("s3://your-bucket/some-folder"))
@franz101
Copy link

franz101 commented Aug 1, 2020

s3 = s3fs.core.S3FileSystem(profile="franz")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment