Reputation: 244
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?
Upvotes: 5
Views: 16964
Reputation: 31
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)
Upvotes: 3