I am trying to access the output of the labeling job that is now stored in s3 bucket I created. I am doing this via a SageMaker jupyter lab. Why is my access denied to my own bucket?!!!
import pandas as pd
import boto3
bucket = "s3://my-bucket"
key = "XXX/output.manifest"
s3 = boto3.client('s3')
obj = s3.get_object(Bucket=bucket, Key=key)
df = pd.read_csv(obj['Body'])
CodePudding user response:
Your bucket should be:
bucket = "my-bucket"
not:
bucket = "s3://my-bucket"