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 Answers
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
answered 6 months ago
profile picture
EXPERT
reviewed 6 months ago
  • 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
answered 6 months 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

Relevant content