TestBoto.py 210 B

123456789101112
  1. #!/usr/bin/python
  2. #
  3. # Just tests boto and default credentials
  4. import boto3
  5. boto3.set_stream_logger('botocore', level='DEBUG')
  6. s3 = boto3.resource('s3')
  7. for bucket in s3.buckets.all():
  8. print(bucket.name)