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?

질문됨 2년 전6577회 조회
1개 답변
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
지원 엔지니어
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠