How intercept requests made by Boto3 and cancel them based on some conditons?

0

Hello,

We aim to add a quota per user to execute AWS Braket quantum tasks and jobs. So, we want to know if AWS allows the interception of requests made by Boto3 to create a proxy using the Lambda functions to allow a user to continue executing or cancel the request.

Thank you, Best regards.

2 Answers
1

Thanks for the query! You could use boto hooks to intercept the requests. You also might be able to leverage some parts of Braket's pre-built solutions [1] [2]. We'd love to hear more about your use case and try to help you find the most suitable solution. Please reach out to us on braket-feedback@amazon.com for discussing this further.

answered 9 months ago
0

There are couple of ways.

IAM Policies: You can create custom IAM policies that limit the number of Braket tasks/jobs a user can create per day, week, or month. These policies can be attached to IAM users or roles to enforce the quotas.

Service Quotas: AWS Service Quotas allow you to request increases to the default service limits for Braket, and you can potentially create custom quotas per user or per account.

https://docs.aws.amazon.com/servicequotas/latest/userguide/intro.html

Please go through this for different ways you can solve the problem https://aws.amazon.com/blogs/quantum-computing/managing-the-cost-of-your-experiments-in-amazon-braket/

profile pictureAWS
EXPERT
answered 9 months ago
  • Thank you,

    Could you please provide an example of "custom IAM policies" that limit the number of Braket tasks/jobs?

    Best regards.

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