Facing issues in Sagemaker Notebook instance

0

Dear Team,

There was an version change for which I created new Instance, but getting error while running codes, Traceback (most recent call last): File "/home/ec2-user/anaconda3/envs/py39/lib/python3.9/site-packages/s3fs/core.py", line 248, in _call_s3 out = await method(**additional_kwargs) File "/home/ec2-user/anaconda3/envs/py39/lib/python3.9/site-packages/aiobotocore/client.py", line 155, in _make_api_call raise error_class(parsed_response, operation_name) botocore.exceptions.ClientError: An error occurred (AccessDenied) when calling the ListObjectsV2 operation: Access Denied

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/home/ec2-user/anaconda3/envs/py39/lib/python3.9/site-packages/s3fs/core.py", line 1085, in _info out = await self._simple_info(path) File "/home/ec2-user/anaconda3/envs/py39/lib/python3.9/site-packages/s3fs/core.py", line 998, in _simple_info out = await self._call_s3( File "/home/ec2-user/anaconda3/envs/py39/lib/python3.9/site-packages/s3fs/core.py", line 268, in _call_s3 raise err PermissionError: Access Denied

Even after providing access policies for S3 still facing same.

Could you please provide an quick solution to this please

Thanks, Sadiq Mohammed-jaffer-sadiq@hpe.com

asked 16 days ago102 views
1 Answer
0

Hello Sadiq,

Thank you for using Amazon SageMaker.

I understand that while accessing the data from S3 bucket you are observing Access Denied error even after S3 Full access permission is provided and would like to know what action could fix the issue.

It is difficult to gauge the definite action that needs to be added to your policy to overcome the Access Denied error. I'd recommend you to verify if all the steps or actions are been added to the execution role or users as mentioned in AWS guide . I understand the action that is performed in that guide is about sync and the action you are performed is different but the permission denied here is same i.e. ListObjectsV2 operation.

If even after following the mentioned AWS guide the issue persist, I'd recommend you to open a case with Premium Support SageMaker team so that you can share complete error message and required logs to help you overcome this issue.

Open a support case with AWS using the link:

https://console.aws.amazon.com/support/home?#/case/create

AWS
SUPPORT ENGINEER
answered 10 days ago
profile picture
EXPERT
reviewed 6 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions