D-Wave device access error

0

Dear All,

After loading the required python libraries, i just used the below API
AwsDevice.get_devices(types=['SIMULATOR'])

which is giving me error

AccessDeniedException: An error occurred (AccessDeniedException) when calling the SearchDevices operation: User: arn:aws:sts::007842834122:assumed-role/AmazonSageMaker-ExecutionRole-20210702T205988/SageMaker is not authorized to perform: braket:SearchDevices on resource: arn:aws:braket:us-west-2:007842834122:/devices

My query is, which sagemaker role i should assign to my notebook. By default the sagemaker's "AmazonSageMaker-ExecutionRole-20210702T205988" role should have been sufficient.
I did same thing in both east and us-west-2, but same access issue.
Please help.

Edited by: SmartNeeraj on Jul 30, 2021 3:18 AM

질문됨 3년 전185회 조회
5개 답변
0

Hello, I believe the error is because the execution role used in your example is incorrect, It should be AmazonBraketServiceSageMakerNotebookRole (i.e., the role that is created for you in the create notebook dialog).

답변함 3년 전
0

Could anybody please help me here!!

답변함 3년 전
0

Hello SmartNeeraj, the notebooks require a specific IAM role to function: a role with a name that begins with AmazonBraketServiceSageMakerNotebook. The Braket Developer Guide contains details on how to get the role setup: https://docs.aws.amazon.com/braket/latest/developerguide/braket-manage-access.html#notebooks-and-roles

답변함 3년 전
0

I just gave additional policy to my amazon notebook 'AmazonBraketFullAccess'. Although this is something additional, because the user role already has 'AmazonBraketFullAccess' policy assigned to user's IAM role.

답변함 3년 전
0

Unfortunately, the notebooks don't inherit permissions from the logged in user. They only have the permissions from the role they are launched with. So, your solution was correct. Roles for notebook execution need to have AmazonBraketFullAccess.

AWS
Wayne
답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠