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

asked 3 years ago180 views
5 Answers
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).

answered 3 years ago
0

Could anybody please help me here!!

answered 3 years ago
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

answered 3 years ago
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.

answered 3 years ago
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
answered 3 years 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