Authorize account to use Braket

1

In using Braket, following the tutorial I get the error: "An error occurred (AccessDeniedException) when calling the CreateQuantumTask operation: This account is not authorized to use this resource. In order to access additional resources, please contact customer support" How do I authorize the account to use this resource?

Daniel
asked 3 months ago201 views
3 Answers
1

Hi, it looks like the AWS user you are using lacks the necessary permission to create a quantum task on the Braket service.

I am also happy to give more hands-on help too. For that, would you mind sharing whether you have admin access to the AWS account console through your browser?

answered 3 months ago
  • I am acting as the root user, and I believe I have access to arn:aws:iam::aws:policy/AmazonBraketFullAccess. I have admin access through the browser.

  • Hi Daniel,

    with admin access to the console, as an option, you may take the following steps to give your user permissions for creating quantum tasks: Step 1) create a new IAM user (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_users.html), Step 2) during creating, attach the AmazonBraketFullAccess IAM policy, Step 3) on the new user's page, under the "Security credentials" tab, in the "Access keys" section, you can create an access key for the "Command Line Interface (CLI)" (for more info about access keys, see: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html#securing_access-keys), Step 4) copy the Access key and the Secret access key from the screen to the AWS credentials file on your system (where to find it, see here: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html)

    You may test that the above worked with the following GetDevice call from your terminal: aws braket get-device --device-arn arn:aws:braket:::device/quantum-simulator/amazon/sv1. If the permissions are set correctly, this code should print the raw json of Braket's SV1 device to stdout. Starting with {"deviceArn": "arn:aws:braket:::device/quantum-simulator/amazon/sv1", "deviceName": "SV1", ... After this, I suggest you try again with the quantum task creation. (You may need to restart the python kernel too before the task submission runs successfully.)

  • I have a similar error message Account 123123123123 is not permitted to access AWS Braket resources. when try to create quantum task, but can get device info successfully.

0

Hi Daniel,

AWS Braket has a way to verify some of this for you. In the AWS Console, go to Amazon Braket, and in the left-navigation window you should see a section called "Permissions and settings". When you click on this, there will be two tabs "General" and "Execution roles". Follow the instructions given, and it should allow you to verify and create your account setup to run on QPUs.

Hope that helps!

Milan
answered a month ago
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 24 days 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