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.

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
답변함 한 달 전
profile picture
전문가
검토됨 한 달 전
  • 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
답변함 한 달 전

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

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

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

관련 콘텐츠