import boto3
s3_client = boto3.client('s3')
def handler(event, context):
response = s3_client.list_buckets()
list = []
for bucket in response['Buckets']:
list.append(bucket['Name'])
print(f' {bucket["Name"]}')
return list
# def handler(event, context):
# s3_client = boto3.client('s3')
# response = s3_client.list_buckets()
# return response['Buckets']