AccessDeniedException: An error occurred (AccessDeniedException) when calling the CreateJob operation: This account is not authorized to use this resource.

1

Earlier I was able to create aws quantum task and execute hybrid jobs. Now it is giving me this exception. Amazon Braket Jobs Execution Roles and Policies are all set both for notebook as well as the user, but it is still giving error.

bidhu
已提問 1 個月前檢視次數 222 次
2 個答案
0

Hi there, I'm sorry to hear you're running into these issues. The exception that is raised indeed indicates an issue with the IAM permissions. Can you double check that

  1. your user has the IAM policy AmazonBraketFullAccess (arn:aws:iam::aws:policy/AmazonBraketFullAccess) attached
  2. [if you use Braket notebooks] your notebook has an IAM role starting with AmazonBraketServiceSageMakerNotebook attached (alternatively, you can automatically create a new role when you create the notebook)
  3. [if you use Hybrid Jobs] each job has the IAM role AmazonBraketJobsExecutionRole attached.

You can find more information here: https://docs.aws.amazon.com/braket/latest/developerguide/braket-manage-access.html

Please keep us posted if this works.

profile pictureAWS
已回答 1 個月前
profile picture
專家
已審閱 1 個月前
  • Code-snipet- # This cell should take about 5 mins job = AwsQuantumJob.create( device=Devices.Amazon.SV1, source_module="algorithm_script.py", wait_until_complete=True, )

    I am still getting the error message, AccessDeniedException: An error occurred (AccessDeniedException) when calling the CreateJob operation: This account is not authorized to use this resource. In order to access additional resources, please contact customer support. I have tried creating new users, but no use. Tried running from AWS CLI from my local drive with api call, still gives the same error. My user already has the following roles and policies assigned - AdministratorAccess, AmazonAPIGatewayAdministrator, AmazonBraketFullAccess, AmazonBraketJobsExecutionPolicy, AmazonS3FullAccess. Gives the same error even when running from the root account.

  • Thanks for the additional detail. The best next step is to cut a ticket (see Zia's instructions in the other answer) so our support team can take a closer look.

0

Hey All,

If you are still experiencing this permissions issue, the following three steps will help you create a ticket to our support team. They will be able to get this resolved for you.

  1. Login to your AWS Management Console
  2. Once logged in, create a case by visiting the Support Center (https://support.console.aws.amazon.com/support/home)
  3. When prompted for the details, use the following routing path Enter image description here
profile picture
已回答 1 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南