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

gefragt vor 3 Jahren185 Aufrufe
5 Antworten
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).

beantwortet vor 3 Jahren
0

Could anybody please help me here!!

beantwortet vor 3 Jahren
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

beantwortet vor 3 Jahren
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.

beantwortet vor 3 Jahren
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
beantwortet vor 3 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen