I've uploaded my own Jupyter notebook to Sagemaker, and am trying to create an iterator for my training / validation data which is in S3, as follow:
train = mx.io.ImageRecordIter( path_imgrec = ‘s3://bucket-name/train.rec’ …… )
I receive the following exception:
MXNetError: [04:33:32] src/io/s3_filesys.cc:899: Need to set enviroment variable AWS_SECRET_ACCESS_KEY to use S3
I've checked that the IAM role attached with this notebook instance has S3 access. Any clues on what might be needed to fix this?