in experiments/notebooks/cloudstory-api/cloudstory.py [0:0]
def list_buckets(match=''):
response = s3.list_buckets()
if match:
print(f'Existing buckets containing "{match}" string:')
else:
print('All existing buckets:')
for bucket in response['Buckets']:
if match:
if match in bucket["Name"]:
print(f' {bucket["Name"]}')