amazon-braket / amazon-braket-sdk-python

A Python SDK for interacting with quantum devices on Amazon Braket
https://aws.amazon.com/braket/
Apache License 2.0
294 stars 118 forks source link

AccessDeniedException for hybrid job submission #966

Closed cbdag closed 1 month ago

cbdag commented 2 months ago

Hi, I'm trying to submit a hybrid job to Aquila on Amazon Braket. My account has the permissions to run these jobs: When I click on "verify existing roles" I see this: "Roles were found with sufficient permissions to execute hybrid jobs." However when I try to submit my job, I get the following error:

"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"

The code I'm trying to compile on the Python notebook is

from braket.aws import AwsQuantumJob
from braket.devices import Devices

job = AwsQuantumJob.create(
    device="arn:aws:braket:us-east-1::device/qpu/quera/Aquila",
    source_module="batchEvolution.py",
    entry_point="batchEvolution:startHere",
    wait_until_complete=True
)

I followed the documentation on AWS website to write this code. Could you help me with this?

Thanks! Ceren.

math411 commented 2 months ago

Hi @cbdag,

This appears to be related to your IAM permissions. Please reach out to the Support Center for assistance unblocking you. To do so:

  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)
  2. Use the routing path - Service Account Activation, Category Account Verification, Severity: General question

Ref: https://repost.aws/questions/QU-tQt9DazRAGRrAeypzaHEQ/accessdeniedexception-an-error-occurred-accessdeniedexception-when-calling-the-createjob-operation-this-account-is-not-authorized-to-use-this-resource

math411 commented 1 month ago

Hi @cbdag,

I am going to close out the issue but if there are more questions, feel free to open this issue back up.