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

feita há 3 anos185 visualizações
5 Respostas
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).

respondido há 3 anos
0

Could anybody please help me here!!

respondido há 3 anos
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

respondido há 3 anos
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.

respondido há 3 anos
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
respondido há 3 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas