#!/usr/bin/env python3.7
# -----------------------------------------------------------------------------------------#
import boto3

# -----------------------------------------------------------------------------------------#
s3 = boto3.client('s3', region_name="us-east-2")


# -----------------------------------------------------------------------------------------#
# Lists all of your available buckets in this AWS Region.
# -----------------------------------------------------------------------------------------#
def list_all_buckets(s3):
    resp = s3.list_buckets()

    for bucket in resp['Buckets']:
        print(bucket['Name'])

    return


# -----------------------------------------------------------------------------------------#
# Lists all of your available buckets in this AWS Region.
# -----------------------------------------------------------------------------------------#
if __name__ == "__main__":
    list_all_buckets(s3)
