Hi everyone,
I'm trying to connect my local Python environment to an AWS S3 bucket using the boto3 library. However, when I try to run the code to list the files in my S3 bucket, I encounter an authentication error:
import boto3
s3 = boto3.client('s3')
response = s3.list_objects_v2(Bucket='my-bucket-name')
print(response)
I get error:
botocore.exceptions.SSLError: Can't connect to HTTPS URL because the SSL module is not available.
I’ve already configured my AWS credentials using the aws configure command, but I’m still encountering this error. Has anyone else experienced this before or does anyone have suggestions on how to resolve this?
Thanks in advance for your help!
Dona