Sagemaker Notebook - SSL failed validation when Boto3 session.client(verify=False)

0

In a sagemaker notebook with an associated git repository, when I try to create a boto3 session client using verify = False, I get the following : SSLError: SSL validation failed for {service_name } [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)

The error resolves if I allow the default value of verify = None (meaning SSL certs are verified). My problem is that this session is created as part of a function call on the associated git repository and I don't want to change the behavior in the repo. I don't understand why this error occurs only when I specify not to validate SSL certificates. Any ideas of what explains this behavior?

gefragt vor 2 Jahren6577 Aufrufe
1 Antwort
0

Hello,

Thank you for using AWS SageMaker.

When running the below command, it got executed without any error. More over this issue seems to look like a configuration issue, I'd recommend you to reach out to boto3 team via Github or opening a case with Premium Support team to identify if calling the session from Github is possible or not.

import boto3
import boto3.session

# Create your own session
my_session = boto3.session.Session()

# Now we can create low-level clients or resource clients from our custom session
s3 = my_session.client('s3',verify=False)

Open a support case with AWS using the link:

https://console.aws.amazon.com/support/home?#/case/create

AWS
SUPPORT-TECHNIKER
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen