The following is my python script to upload the code.
s3 = boto3.resource('s3')
# Get list of objects for indexing
images=[('Micheal_Jordan.jpg','Micheal Jordan'),
('Wayne_Rooney.jpg','Wayne Rooney')
]
# Iterate through list to upload objects to S3
for image in images:
file = open(image[0],'rb')
object = s3.Object('famouspersons-images','index/'+ image[0])
ret = object.put(Body=file,
Metadata={'FullName':image[1]})
Getting the following error.
botocore.exceptions.SSLError: SSL validation failed for https://s3bucketname.s3.amazonaws.com/index/Wayne_Rooney.jpg [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)