How to get all s3 bucket names in AWS using boto3?

You can use the below Python script to print all S3 buckets names in your AWS account.

Step 1: Install and configure Python boto3

Step 2: Create a python script to print all S3 bucket names

Step 3: Execute the script to priny all S3 bucket names in your AWS account