s3 = boto3.resource('s3')
for bucket in s3.buckets.all():
but this code does not work, how to import my AWS credentials so that this will return correct output?
error : botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "https://s3.aws-east-2.amazonaws.com/"
expected output : list of buckets in my aws account.