简体   繁体   中英

Connect Jupyter Notebook (locally) to AWS s3 without SageMaker

Is it possible to connect jupyter notebook that is running locally to one of the buckets on AWS S3 without using SageMaker and involving no or with access and secret keys?

Apparently it is possible. You can find a tutorial here . However, you'll need to create an IAM role. The process is described here .

import boto3
s3_client = boto3.client('s3',aws_access_key_id="<Type your key>",aws_secret_access_key="<type your sec key>")
bucket = "<your bucket name>"
file_name = "<your file name>"
s3_clientobj = s3_client.get_object(Bucket=bucket, Key=file_name)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM