Python Forum
I need to MODIFY this to list all of the s3 buckets in my account , right now it will
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I need to MODIFY this to list all of the s3 buckets in my account , right now it will
#1
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Modify an Energy Model to account for year dependent interest rate rather than only t giovanniandrean 0 425 Oct-10-2023, 07:00 AM
Last Post: giovanniandrean
  Different results of code with local account and technical account dreyz64 7 3,668 Mar-05-2020, 11:50 AM
Last Post: dreyz64
  modify line in file if pattern found in list. kttan 1 2,215 Dec-10-2018, 08:45 AM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020