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

https://cloudaffaire.com/how-to-install-python-boto3-sdk-for-aws/

https://cloudaffaire.com/how-to-configure-python-boto3-sdk-for-aws/

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