Last active
December 10, 2020 02:52
-
-
Save kachina/4dc2b1d91b5ee81a6d2aeacc79142b91 to your computer and use it in GitHub Desktop.
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
import os | |
import boto3 | |
def main(): | |
s3_client = boto3.client('s3') | |
response = s3_client.list_objects_v2(Bucket='example-bucket') | |
for content in response['Contents']: | |
print(content['Key']) | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment