Python Forum

Full Version: I need to MODIFY this to list all of the s3 buckets in my account , right now it will
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Python script , I need to MODIFY this to list all of the s3 buckets in my account , right now it will LIST what is in a specific bucket


import boto3
s3 = boto3.resource('s3')
my_bucket = s3.Bucket('public-resources.sandbox.vizuri.com')
for object in my_bucket.objects.all():
    print(object)
please help thankshttps://python-forum.io/images/smilies/eusa_wall.gif