I was trying to read a file from s3 bucket from jupyter notebook which was created using development endpoint of an ecr image.
When I tried to read a file from s3, I am getting below error.
S3 Error Message. -- ResponseCode: 403, ResponseStatus: Forbidden, XML Error
Message: <?xml version="1.0" encoding="UTF-8"?>
<Error>
<Code>InvalidAccessKeyId</Code>
<Message>The AWS Access Key Id you provided does not exist in our records.</Message>
<AWSAccessKeyId>****accessid</AWSAccessKeyId>
<RequestId>****requestid</RequestId>
<HostId>****hostid</HostId>
</Error>
I have full access on s3. And I am using access id, secret id and session token from the cli for the account.
Command I used to access jupyter notebook from ecr image is as below
docker run -it -p 8889:8889 -e JUPYTER_TOKEN=**** -e AWS_ACCESS_KEY_ID=**** -e AWS_SECRET_ACCESS_KEY=**** -e AWS_SESSION_TOKEN=**** -v C:\Users\****:/glue/app *****endpoint:latest
Do I need to add any additional policy for s3 to enable accesss from jupyter notebook?